Possible Duplicates:
Response.Redirect vs. Server.Transfer
Server.Transfer Vs. Response.Redirect
What is the difference between response.redirect and server.transfer?
Only one difference i know is: In response.redirect the browser url changes to targeted page as well as in server.transfer the url remains same!
any other difference?
Response.Redirect should be used when:
we want to redirect the request to some plain HTML pages on our
server or to some other web server
we don’t care about causing additional roundtrips to the server on
each request
we do not need to preserve Query String and Form Variables from the
original request
we want our users to be able to see the new redirected URL where he
is redirected in his browser (and be able to bookmark it if its
necessary)
Server.Transfer should be used when:
we want to transfer current page request to another .aspx page on the same server
we want to preserve server resources and avoid the unnecessary
roundtrips to the server
we want to preserve Query String and Form Variables (optionally)
we don’t need to show the real URL where we redirected the request in
the users Web Browser