Microsoft Bug

C

champ0007

In ASPX Page,

For unknown reasons, sometimes the CSS disappears on reload of the ASP
page.
Be it a Datagrid refresh, a button click that does a PostBack ! ! !

I have tried ways to include the external CSS

<link href="xyz.css" rel="stylesheet">

import url(http://xyz/abc.css)

ultimately the only solution was to Embedd the CSS in to page itself.

Check it out ! or suggest ! !
 
C

champ0007

yeah ! i have checked the code !
The CSS is included properly.
What i dont understand is that Why does it gets the reference of ht
CSS on Initial Load
and on Post Back it loses the Reference ! ! ! ?????
 
P

Patrice

What do you mean by "loses the reference" ? Do you mean that you don't see
visually any more the styles or that the HTML code doesn't contain any more
the stylesheet link ?

If "link" is still in the HTML code, this is more likely a client side
problem. Check perhaps IIS to see if there is a request to the CSS
stylesheet (problem with the HTTP request, the IE cache etc...)

Try perhaps to clean up the rendered HTML code to see if at some point you
gain access again to your styles (for example some other things you do such
as adding embedded styles could perhaps hide the effect of your linked
sheet).

Good luck.

Patrice
 
C

champ0007

Losing Reference means Styles are not visible .. the page turns Blac
and White !

Fine ! thanks Patrice !

I'll check the same
 
A

Aaron Corcoran

Champ,

That sounds like some strange behavior. I use style sheets for our
ASP.NET projects and have yet to run across a similar situation. On
the .aspx page itself, the only reference that I use in the HTML code
is the following within the <head> </head> tags.:

<LINK href="common.css" type="text/css" rel="stylesheet">

where the common.css file is in the root of my application. I'm not
sure what could be causing the reaction that you are experiencing, but
it definitely sounds like a frustrating one. Have you tried this on
any other machines besides the one you are working on, in case, as
mentioned above, that it may be a client side issue?

Keep us informed if you get any more news,
Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top