Solved

Server.Transfer + CSS

Posted on 2003-10-21
2
467 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now