DIFFERENCE BETWEEN RESPONSE.REDIRECT() AND SERVER.TRANSFER()

Sanjay Sharma

Total Post:45

Points:315
Posted by  Sanjay Sharma
 2086  View(s)
Ratings:
Rate this:
What is the difference between Response.Redirect() and Server.Transfer()?
  1. Amit Singh

    Post:103

    Points:721
    Re: Difference between Response.Redirect() and Server.Transfer()

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!