Solved

server.transfer url problem?

Posted on 2002-05-18
2
200 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
2 Comments
 
LVL 23

Accepted Solution

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC connection string for ODBC 6.01 24 72
SMS AddAttachment Protocol Error Classic ASP 10 38
Hide row when retrieving data from database 6 53
Need help to rewrite script 3 68
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

22 Experts available now in Live!

Get 1:1 Help Now