Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Css after postback

Status
Not open for further replies.

netangel

Programmer
Feb 7, 2002
124
PT
I'm using a css on my project. I'm linking the css with my aspx with the link tag:
<LINK href=&quot;styles/styleBug.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;>
Everyting work fine, until the page is posted back. Then, it looses all styles and colors, like if it wasn't linked to the css file.
Is there any way to force a link after a postback, or to avoid loosing the link?

NetAngel
 
I've found the cause of the problem, but I still can't handle it.

I'm using my app from a frame in another virtual directory.
If I open it using ' it works.
If I open it using a frame (from ' it can't find the css file (witch is on the
I can't use the full path because the app is placed on more than 1 server. NetAngel
 
well, if the link is going to change each time, then i'm guessing you'll have to have multiple copies of the file.

either that or put a label on each page and figure out where the file is in code, and then write to that label:

<link ....>
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top