Click here to Skip to main content


QuestionASP.NET PinmemberMember 468595610-Dec-12 20:59 
AnswerRe: ASP.NET PinmvpRichard MacCutchan10-Dec-12 22:32 
AnswerRe: ASP.NET Pinmember@AmitGajjar11-Dec-12 7:48 
QuestionResponse.Redirect behavior PinmemberAndrew Stoute10-Dec-12 10:11 
Given the following code in an .ASPX webforms application :
        // a bunch of code, database stuff, etc.

    catch (Exception ex)
       // Error Logging
        // object cleanup and disposal
I'm wondering if the code in the Finally block (or any code that might be outside of the whole try/catch) would ever be hit.
Doesn't the Response.Redirect() immediately redirect making any code that follows useless? Or do I just not understand how this works?
AnswerRe: Response.Redirect behavior PinmemberDavid Mujica10-Dec-12 11:01 
GeneralRe: Response.Redirect behavior [modified] PinmemberAndrew Stoute10-Dec-12 11:16 
AnswerRe: Response.Redirect behavior PinmemberShameel10-Dec-12 22:28 
AnswerRe: Response.Redirect behavior Pinmember@AmitGajjar11-Dec-12 7:54 
AnswerRe: Response.Redirect behavior Pinmemberryanb3112-Dec-12 5:36 
GeneralRe: Response.Redirect behavior PinmemberAndrew Stoute12-Dec-12 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 31 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid