Home > DeveloperSection > Forums > Difference between Response.Redirect() and Server.Transfer()
Sanjay Sharma
Sanjay Sharma

Total Post:45

Points:315
Posted on    October-18-2010 8:04 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1753  View(s)
Rate this:
What is the difference between Response.Redirect() and Server.Transfer()?


Amit Singh

Total Post:103

Points:721
Posted on    October-20-2010 7:26 AM

Server.Transfer is give better result than response.redirect
in Server.Transfer, it occures on serverside so it give fast performance than response becouse response is work on two network trip like client side and server side
In server.Transfer()
client makes request
server receives request
server transfers to different page (all done on the server)
new page is rendered and sent to client
In Response.Redirect()
client makes request
server receives request
server response to client with a redirect.
client receives redirect
client makes new (2nd) request
server receives request
 new page is rendered and sent to client
so response is done in two networktrip

Don't want to miss updates? Please click the below button!

Follow MindStick