We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Platform : ASP.NET
|
Category : Basic

What is the difference between Response.Redirect() and Server.Transfer().

Response.Redirect
  • Transfers the page control to the other page, in other words it sends the request to the other page.
  • Causes the client to navigate to the page you are redirecting to. In http terms it sends a 302 response to the client, and the client goes where it’s told.
Server.Transfer
  • Only transfers the execution to another page and during this you will see the URL of the old page since only execution is transferred to new page and not control.
  • Occurs entirely on the server, no action is needed by the client
Sometimes for performance reasons, the server method is more desirable

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.