Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server.Transfer + CSS

Posted on 2003-10-21
2
Medium Priority
?
479 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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)…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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