|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Microsoft BugIn 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 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 > 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 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 > 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 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
Other interesting topics
ASP.NET stopped working
ASP.NET tells me my table doesn't have a primary key Viewstate String InvalidCastException how to determine .NET framework version Munging URLs to store data Does CompareValidator work for the date in dd-mmm-yyyy format? Transparent images OnPreRender ??? What is ? Render and get html from usercontrol Difference between Page_Load and OnLoad |
|||||||||||||||||||||||