4

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?

Community
  • 1
  • 1
NLV
  • 21,141
  • 40
  • 118
  • 183

1 Answers1

4

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

Community
  • 1
  • 1
hemp
  • 5,602
  • 29
  • 43