css failure on postback

  • Thread starter Thread starter catweezle2010
  • Start date Start date
C

catweezle2010

Hello all,

I develop aspx pages for internal use. We use IIS 6, .net 2 and IE 6.

In the head of the clientcode I call a css file like "@import
url(../CSS/Styles.css);"

All this runs fine. When I pubish the site to the server and call it
from a clientmachine everything looks fine as well. But when there is a
postback all styles are gone and the site is nearby unuseable. On the
next postback it mostly looks fine again.

Do I use the wrong way to implement the css or do I have to update the
..net Framework with something?

Thanks for help.
 
I use CSS on my master page, which allows the dyanmic client side URL (i.e.
~):
<link href="~/css/common.css" rel="stylesheet" type="text/css" />

If I were using individual pages with CSS, I would still consider the <link>
tag.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Back
Top