开发者

Response.Redirect() inside a try-finally [duplicate]

开发者 https://www.devze.com 2023-03-09 09:13 出处:网络
This question already has answers here: 开发者_如何学CClosed 11 years ago. Possible Duplicate: Will code in finally run after a redirect?
This question already has answers here: 开发者_如何学C Closed 11 years ago.

Possible Duplicate:

Will code in finally run after a redirect?

Hello,

What happens when I call a Response.Redirect() with EndResponse set to true/false inisde a try/finally block? Will the finally be called?


The finally block in a try/finally will always be called - that's the point of finally.

Exceptions (minor) are described here: Conditions when finally does not execute in a .net try..finally block

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号