Style Sheet problem with response.redirect 
Author Message
 Style Sheet problem with response.redirect

I have a style sheet that is left in the root folder of my project.
Whenever I redirect from one level down the style sheet is not applied
to the page that I redirect too. Such as:

root/login.asp style sheet is called with "style.css"

root/user/default.asp redirects to login.asp (at root/login.asp) if
the session is dead and calls the style sheer with "../style.css"

On a redirect login.asp wants a style sheet at "../style.css" even
though the code on login.asp has not changed. I have tested this by
copying the style sheet up one level and it works. Is this a VB
redirect issue? If so what can be done to work aroung it?



Tue, 29 Mar 2005 20:11:12 GMT  
 Style Sheet problem with response.redirect

Quote:

> I have a style sheet that is left in the root folder of my project.
> Whenever I redirect from one level down the style sheet is not applied
> to the page that I redirect too. Such as:

> root/login.asp style sheet is called with "style.css"

> root/user/default.asp redirects to login.asp (at root/login.asp) if
> the session is dead and calls the style sheer with "../style.css"

> On a redirect login.asp wants a style sheet at "../style.css" even
> though the code on login.asp has not changed. I have tested this by
> copying the style sheet up one level and it works. Is this a VB
> redirect issue? If so what can be done to work aroung it?

I *never* use relative paths, I *always* use explict virtual paths...

/myroot/mystyle.css
/myroot/myfolder/mypage.asp
/myroot/includes/myinclude.inc
etc.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US



Wed, 30 Mar 2005 00:43:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Response Redirect doesn't Work - No me funciona Response Redirect

2. Problem with dynamic style sheet

3. problem with response.redirect

4. Response.Redirect + Netscape Browser + StyleSheets = Problem!

5. Response Redirect problem

6. problem with response.redirect

7. Response.Redirect problem...

8. Response.Redirect + Netscape Browser + StyleSheets = Problem!

9. problem with response.redirect and forms

10. Problem Launching RealPlayer After Response.Redirect

11. Problem with Response.Redirect vs. frames

12. Response.Redirect problem

 

 
Powered by phpBB® Forum Software