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

Both Response.Redirect() and Server.Transfer() methods are used to redirect the user's browser from one page to another page.

Response.Redirect uses round trip back to the client for redirecting the page.
It is a slow technique, but it maintains the URL history in the client browser for all pages. 


In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client's browser.

It is a faster technique, but it does not maintain the URL history in the client browser for all pages.



Post a Comment

Previous Post Next Post