Server.Transfer Vs. Response.Redirect
We all uses Server.Transfer() and Response.Redirect() interchangeably. But what is the difference between two methods. Which one to use over other? We are just trying to get the advantages and disadvantages of both. So read down the article to get grasp of knowledge.
 Server.Transfer: Redirection to another URL is performed on server side. Transfer happens on server side and hence consume more resources on server side.
Response.Redirect: Requires a round trip to the browser running on user's computer. And then navigate to the URL specified. It increase overload on server by increasing requests to the server.
You can understand it as your Web Application is running on the server, and then it comes to line Response.Redirect().This line tells the browser to make request to another page. So this is round trip to the browser.
While in case of Server.Transfer() page transfers directly to the URL specified without going to the browser.
 Server.Transfer: Maintains the original URL in the browser. So sometimes if user refresh page it makes confusion or error.
Response.Redirect: URL changes as the target URL specified.
 Server.Transfer: Method has a second parameter - bool preserveForm. If you set this to True, using a statement such as Server.Transfer("~/Target.aspx", True), the existing query string and any form collections will still be available to the transfering target page.
Response.Redirect: Method has a second parameter - bool endResponse. If you set this to True, using a statement such as Response.Redirect("~/Target.aspx", True), the execution of the current page terminates.
If Source.aspx has a TextBox control called txtSource and you transferred to Target.aspx with the preserveForm parameter set to True, you will be able to retrieve the value of the original page(Source.aspx) TextBox control by referencing Request.Form("txtSource").
 Server.Transfer: Method cannot redirect to a different server itself.
Response.Redirect: Method can redirect to a different server also.
its really good .and it is very help ful for me .really congrats to posting this one
thanks and regards
Thanks for appreciating the work. It would inspire me to share my knowledge with you members.
Vikram Singh Saini
ie Server.Transfer is better to use page transfers in same servers and if we want to redirect to any other location use Response.Redirect. but i u Response.Redirect for all pages to transfer page request.
thank you for a good article.