How to redirect without a round trip

  1. Server.Transfer()
  2. Response.Redirect()
The method Server.Transfer() happens without the browser knowing anything, the browser request a page, but the server returns the content of another. The method Response.Redirect() will send you to a new page, update the address bar and add it to the Browser History. On your browser you can click back.

Server.Transfer() Vs Response.Redirect()

The response.redirect() and server.transfer() helps to transfer user from one page to other page while the page is executing. But the way they do this transfer or redirect is very different. The main difference between them is who does the transfer. In response.redirect() , the transfer is done by the browser while in server.transfer(), it's done by the server. Server.Transfer() maintains the original URL in the browser. This can really help streamline data entry techniques, although it may make for confusion when debugging .

When to use?

To use Server.Transfer() when you want to navigate pages which reside on the same server, use Response.Redirect() when you want to navigate between pages which resides on different server and domain.