?
Solved

server.transfer url problem?

Posted on 2002-05-18
2
Medium Priority
?
209 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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 informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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