?
Solved

server.transfer url problem?

Posted on 2002-05-18
2
Medium Priority
?
212 Views
Last Modified: 2008-03-04
when doing a server.transfer using ASP.NET, the URL does not change to the new location... it stays set to the original location the user pointed to.

for example, user goes to http://www.somedomain.com/default.aspx, server.transfer redirects to http://www.somedomain.com/intro.htm. yet the URL in the browser address bar stays set to http://www.somedomain.com/default.aspx.

why is this? and is it a problem?

and does the browser contain the real transfered-to URL, but happens to show the wrong one?

thanks!
0
Comment
Question by:loyaliser
[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 300 total points
ID: 7018465
When you do Server.Transfer, the execution of thread shifts to new page. The execution of previous thread is not terminated. All the headers, response from redirecting page is carried on to new page. Where as when you do Response.Redirect, the execution of thread is terminated. You can do a very simple experiement. Call Response.Redirect but put the call within try/catch block and you will see that ThreadAbort exception is thrown. This is due to termination of current execution thread.

There is no problem with what you are observing.

Naveen
0
 
LVL 1

Author Comment

by:loyaliser
ID: 7018559
ok... that makes sense.

thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

650 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