Home All Groups Group Topic Archive Search About
Author
10 Jun 2005 9:35 AM
champ0007
In ASPX Page,

For unknown reasons, sometimes the CSS disappears on reload of the ASPX 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 ! ! ! -- champ0007Posted from http://www.pcreview.co.uk/ newsgroup access

Author
10 Jun 2005 9:38 AM
Patrice
Have you checked the rendered HTML code ?

Patrice

--

Show quoteHide quote
"champ0007" <champ0007.1qemca@> a écrit dans le message de
news:j-GdnSsSpeh5wzTfRVn_vg@giganews.com...
>
> In ASPX Page,
>
> For unknown reasons, sometimes the CSS disappears on reload of the ASPX
> 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 ! ! !
>
>
> --
> champ0007Posted from http://www.pcreview.co.uk/ newsgroup access
>
Are all your drivers up to date? click for free checkup

Author
10 Jun 2005 10:20 AM
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 hte CSS on Initial Load
and on Post Back it loses the Reference ! ! ! ?????? -- champ0007Posted from http://www.pcreview.co.uk/ newsgroup access
Author
10 Jun 2005 11:47 AM
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

--

Show quoteHide quote
"champ0007" <champ0007.1qeogy@> a écrit dans le message de
news:tdOdnS_bVI0F9DTfRVn_vg@giganews.com...
>
> yeah ! i have checked the code !
> The CSS is included properly.
> What i dont understand is that Why does it gets the reference of hte
> CSS on Initial Load
> and on Post Back it loses the Reference ! ! ! ??????
>
>
> --
> champ0007Posted from http://www.pcreview.co.uk/ newsgroup access
>
Author
10 Jun 2005 12:01 PM
champ0007
Losing Reference means Styles are not visible .. the page turns Black and White !

Fine ! thanks Patrice !

I'll check the same ! -- champ0007Posted from http://www.pcreview.co.uk/ newsgroup access
Author
10 Jun 2005 12:45 PM
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

Bookmark and Share