Home All Groups Group Topic Archive Search About

css failure on postback

Author
18 Oct 2006 10:33 AM
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.

Author
18 Oct 2006 12:28 PM
Cowboy (Gregory A. Beamer)
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!
*************************************************
Show quote
"catweezle2010" <catweezle2***@gmx.de> wrote in message
news:1161167582.390646.160120@e3g2000cwe.googlegroups.com...
> 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.
>
Author
18 Oct 2006 2:10 PM
catweezle2010
Thanks Cowboy, but I think this wouldn't solve my problem?

AddThis Social Bookmark Button