What's the difference in....

  • Thread starter Goober at christianDOTnet
  • Start date
G

Goober at christianDOTnet

response.redirect and server.transfer?

I am on a single production server in an application that is both asp.net
and traditional ASP code.

In some of the code (that I didn't author), there are some server.transfers
in which some querystrings are passed along to the new .aspx file.

If they both do the same thing, is one more advantageous to use than the
other?

Thanks,

SC
 
C

Craig Deelsnyder

response.redirect and server.transfer?

I am on a single production server in an application that is both asp.net
and traditional ASP code.

In some of the code (that I didn't author), there are some server.transfers
in which some querystrings are passed along to the new .aspx file.

If they both do the same thing, is one more advantageous to use than the
other?

Thanks,

SC
quick, concise explanation:
http://www.developer.com/net/asp/article.php/3299641

a couple more comments:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=15
 
G

Gai

Response.Redirect() is a client side action, where Server.Transfer() is a
server side action.
if you use the second one, the page that you're transfering to will not be
added to the browser history list, so if the user, later on, uses the "Back"
browser button he won't see that page.

If that makes any sense to you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top