kedar kamthe kedar kamthe - 2 months ago 24
ASP.NET (C#) Question

Server.Transfer Vs. Response.Redirect

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?


CMS CMS
Answer

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.