difference between Server.Transfer and Response.Redirect

Posted by Saranya Boopathi under ASP.NET on 6/26/2013 | Points: 10 | Views : 1927 | Status : [Member] | Replies : 2
Hi,
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Saranya Boopathi


Responses

Posted by: Satyapriyanayak on: 6/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Server.Transfer transfers execution directly to another page. Response.Redirect sends a response to the client and directs the client (the browser) to load the new page (it causes a roundtrip). If you don't need to execute code on the client, Transfer is more efficient.

If this post helps you mark it as answer
Thanks

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/27/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.aspnetcodes.com/2011/05/aspnet-35-interview-questions-answers.html

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response