Live Chat Icon For mobile
Live Chat Icon

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

Platform: ASP.NET| Category: Basic

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

Share with