Click here to Skip to main content
       

ASP.NET

 
QuestionASP.NET PinmemberMember 468595610-Dec-12 20:02 
AnswerRe: ASP.NET PinmemberJ4amieC11-Dec-12 0:14 
AnswerRe: ASP.NET PinmemberMarcus Kramer11-Dec-12 6:29 
JokeRe: ASP.NET Pinmemberjkirkerx11-Dec-12 12:09 
QuestionASP.NET PinmemberMember 468595610-Dec-12 19:59 
AnswerRe: ASP.NET PinmvpRichard MacCutchan10-Dec-12 21:32 
AnswerRe: ASP.NET Pinmember@AmitGajjar11-Dec-12 6:48 
QuestionResponse.Redirect behavior PinmemberAndrew Stoute10-Dec-12 9:11 
Given the following code in an .ASPX webforms application :
 
 
    try 
    {
        // a bunch of code, database stuff, etc.

        Response.Redirect("somePage.aspx");
    } 
    catch (Exception ex)
    {
       // Error Logging
    }
    finally
    {
        // 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 10:01 
GeneralRe: Response.Redirect behavior [modified] PinmemberAndrew Stoute10-Dec-12 10:16 
AnswerRe: Response.Redirect behavior PinmemberShameel10-Dec-12 21:28 
AnswerRe: Response.Redirect behavior Pinmember@AmitGajjar11-Dec-12 6:54 
AnswerRe: Response.Redirect behavior Pinmemberryanb3112-Dec-12 4:36 
GeneralRe: Response.Redirect behavior PinmemberAndrew Stoute12-Dec-12 4:46 
QuestionERROR while updating image in database PinmemberAni199110-Dec-12 6:18 
GeneralRe: ERROR while updating image in database Pinmemberjkirkerx10-Dec-12 10:37 
GeneralRe: ERROR while updating image in database PinmemberAni199110-Dec-12 21:15 
GeneralRe: ERROR while updating image in database PinmemberRichard Deeming11-Dec-12 0:54 
GeneralRe: ERROR while updating image in database Pinmemberjkirkerx11-Dec-12 7:26 
Questionmaking a class with streamreader thread safe - perhaps using monitor or a singleton Pinmemberjkirkerx9-Dec-12 11:45 
GeneralRe: making a class with streamreader thread safe - perhaps using monitor or a singleton Pinmemberjkirkerx9-Dec-12 16:14 
QuestionDisplay Images from a database in a tile view PinmemberMember 94655649-Dec-12 5:42 
AnswerRe: Display Images from a database in a tile view PinmemberAli Al Omairi(Abu AlHassan)10-Dec-12 2:23 
Questionlinq connection in asp.net PinmemberJonBrynjar8-Dec-12 3:58 
AnswerRe: linq connection in asp.net Pinmember@AmitGajjar11-Dec-12 7:00 

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.140721.1 | Last Updated 28 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid