Server.Transfer Vs. Response.Redirect

kedar kamthe picture kedar kamthe · Oct 22, 2008 · Viewed 222.4k times · Source

What is difference between Server.Transfer and Response.Redirect?

  • What are advantages and disadvantages of each?
  • When is one appropriate over the other?
  • When is one not appropriate?

Answer

Christian C. Salvadó picture Christian C. Salvadó · Oct 22, 2008

Response.Redirect simply sends a message (HTTP 302) down to the browser.

Server.Transfer happens without the browser knowing anything, the browser request a page, but the server returns the content of another.