Solved

Server.Transfer + CSS

Posted on 2003-10-21
2
472 Views
Last Modified: 2009-09-03
Hi,
I'm using Server.Transfer (with VB.Net in the code-behind) to send info to a new page, but when the new page is loaded all of the CSS info is missing (meaning that no styles are applied).  A click on any of the controls in the new page posts-back and styles are applied again, just as I expected them to be the first time...does anyone know why styles fail to apply on the initial transfer to the new page?

Thanks in advance,
Headspace
0
Comment
Question by:Headspace
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 125 total points
ID: 9593704
Server.Transfer does not modify the URL. It is still the same as the page that initialted the request. So if

http://localhost/Page1.aspx 

calls Server.Transfer("Folder1/Page2.aspx")

The URL location will still be http://localhost/Page1.aspx

So if your CSS file location is some relative path to some folder that is not in the same folder as Page2.aspx, then it can't load.
0
 
LVL 9

Author Comment

by:Headspace
ID: 9598575
Great! Thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question