Is there something that prevents Response.Redirect to work inside try-catch block?

前端 未结 5 1231
旧时难觅i
旧时难觅i 2020-12-10 06:05

I got some weird error with response.redirect() and the project wasn\'t building at all.. when I removed the try-catch block that was surrounding the b

5条回答
  •  一生所求
    2020-12-10 06:38

    Martin is correct, a ThreadAbortException gets thrown when you use a Response.Redirect, see the kb article here

提交回复
热议问题