When Should I Use Response.Redirect(url, true)?

前端 未结 5 1490
夕颜
夕颜 2020-12-03 09:32

I\'m redirecting to an Error page with a prettified error message in my Application_Error, in Global.asax.

At the moment it says:

Respon         


        
5条回答
  •  旧巷少年郎
    2020-12-03 10:22

    If you set it to true, the application ends the response and sends it back to the user, and if you set it to false the code after the redirect will continue to be executed, and the user will be redirected to the new page after the full page-load life cycle ends.

提交回复
热议问题