开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜