Server.Transfer Vs. Response.Redirect

前端 未结 16 2493
夕颜
夕颜 2020-11-22 14:38

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

  • What are advantages and disadvantages of each?
  • When is one
16条回答
  •  無奈伤痛
    2020-11-22 15:19

    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.

提交回复
热议问题