Click here to Skip to main content
11,648,094 members (68,672 online)
   

ASP.NET

 
GeneralRe: Extract data from another site. Pin
@AmitGajjar13-Dec-12 6:12
member@AmitGajjar13-Dec-12 6:12 
GeneralRe: Extract data from another site. Pin
anubhaw.gupta13-Dec-12 6:30
memberanubhaw.gupta13-Dec-12 6:30 
QuestionChat Application Pin
goppinath.r11-Dec-12 16:48
membergoppinath.r11-Dec-12 16:48 
AnswerRe: Chat Application Pin
@AmitGajjar12-Dec-12 5:34
member@AmitGajjar12-Dec-12 5:34 
QuestionASP.NET Pin
Member 468595610-Dec-12 20:02
memberMember 468595610-Dec-12 20:02 
AnswerRe: ASP.NET Pin
J4amieC11-Dec-12 0:14
memberJ4amieC11-Dec-12 0:14 
AnswerRe: ASP.NET Pin
Marcus Kramer11-Dec-12 6:29
memberMarcus Kramer11-Dec-12 6:29 
JokeRe: ASP.NET Pin
jkirkerx11-Dec-12 12:09
memberjkirkerx11-Dec-12 12:09 
QuestionASP.NET Pin
Member 468595610-Dec-12 19:59
memberMember 468595610-Dec-12 19:59 
AnswerRe: ASP.NET Pin
Richard MacCutchan10-Dec-12 21:32
mvpRichard MacCutchan10-Dec-12 21:32 
AnswerRe: ASP.NET Pin
@AmitGajjar11-Dec-12 6:48
member@AmitGajjar11-Dec-12 6:48 
QuestionResponse.Redirect behavior Pin
Andrew Stoute10-Dec-12 9:11
memberAndrew Stoute10-Dec-12 9:11 
AnswerRe: Response.Redirect behavior Pin
David Mujica10-Dec-12 10:01
memberDavid Mujica10-Dec-12 10:01 
GeneralRe: Response.Redirect behavior Pin
Andrew Stoute10-Dec-12 10:16
memberAndrew Stoute10-Dec-12 10:16 
I'm beyond mortified that I didn't think of that. Especially since after posting the question I ran the code to check something else, but putting a break point there just never occurred to me. Sigh | :sigh:

Ok, so thanks to David's suggestion I have an answer.

As it is written that code will throw an exception on the Response.Redirect with the following message:
Quote:
{Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}
However, it still does the redirect after going through the finally block.

Changing the Response.Redirect to
Response.Redirect("SomePage.aspx", false);
will save it from throwing the exception, but will still run the code in the finally and any code after it and then will do the Redirect.

Live and learn.

modified 11-Dec-12 9:26am.

AnswerRe: Response.Redirect behavior Pin
Shameel10-Dec-12 21:28
memberShameel10-Dec-12 21:28 
AnswerRe: Response.Redirect behavior Pin
@AmitGajjar11-Dec-12 6:54
member@AmitGajjar11-Dec-12 6:54 
AnswerRe: Response.Redirect behavior Pin
ryanb3112-Dec-12 4:36
memberryanb3112-Dec-12 4:36 
GeneralRe: Response.Redirect behavior Pin
Andrew Stoute12-Dec-12 4:46
memberAndrew Stoute12-Dec-12 4:46 
QuestionERROR while updating image in database Pin
Ani199110-Dec-12 6:18
memberAni199110-Dec-12 6:18 
GeneralRe: ERROR while updating image in database Pin
jkirkerx10-Dec-12 10:37
memberjkirkerx10-Dec-12 10:37 
GeneralRe: ERROR while updating image in database Pin
Ani199110-Dec-12 21:15
memberAni199110-Dec-12 21:15 
GeneralRe: ERROR while updating image in database Pin
Richard Deeming11-Dec-12 0:54
memberRichard Deeming11-Dec-12 0:54 
GeneralRe: ERROR while updating image in database Pin
jkirkerx11-Dec-12 7:26
memberjkirkerx11-Dec-12 7:26 
Questionmaking a class with streamreader thread safe - perhaps using monitor or a singleton Pin
jkirkerx9-Dec-12 11:45
memberjkirkerx9-Dec-12 11:45 
GeneralRe: making a class with streamreader thread safe - perhaps using monitor or a singleton Pin
jkirkerx9-Dec-12 16:14
memberjkirkerx9-Dec-12 16:14 
QuestionDisplay Images from a database in a tile view Pin
Member 94655649-Dec-12 5:42
memberMember 94655649-Dec-12 5:42 
AnswerRe: Display Images from a database in a tile view Pin
Ali Al Omairi(Abu AlHassan)10-Dec-12 2:23
memberAli Al Omairi(Abu AlHassan)10-Dec-12 2:23 
Questionlinq connection in asp.net Pin
JonBrynjar8-Dec-12 3:58
memberJonBrynjar8-Dec-12 3:58 
AnswerRe: linq connection in asp.net Pin
@AmitGajjar11-Dec-12 7:00
member@AmitGajjar11-Dec-12 7:00 
QuestionChange root path Pin
John Simmons / outlaw programmer8-Dec-12 3:40
mvpJohn Simmons / outlaw programmer8-Dec-12 3:40 
AnswerRe: Change root path Pin
Richard Deeming10-Dec-12 1:35
memberRichard Deeming10-Dec-12 1:35 
GeneralRe: Change root path Pin
John Simmons / outlaw programmer10-Dec-12 1:42
mvpJohn Simmons / outlaw programmer10-Dec-12 1:42 
AnswerRe: Change root path Pin
@AmitGajjar11-Dec-12 7:10
member@AmitGajjar11-Dec-12 7:10 
QuestionUpdating the column using entity framework Pin
indian1437-Dec-12 12:46
memberindian1437-Dec-12 12:46 
Questionasp.NET composite control cannot raise an event Pin
michal.cerbak7-Dec-12 4:50
membermichal.cerbak7-Dec-12 4:50 
Questionhow to convert hex to rgb color code in asp.net Pin
Deenuji vellore6-Dec-12 23:14
groupDeenuji vellore6-Dec-12 23:14 
AnswerRe: how to convert hex to rgb color code in asp.net Pin
Richard MacCutchan7-Dec-12 0:32
mvpRichard MacCutchan7-Dec-12 0:32 
Questionasp.net threads, see if thread with same name is running to wait a couple of seconds Pin
jkirkerx6-Dec-12 10:45
memberjkirkerx6-Dec-12 10:45 
AnswerRe: asp.net threads, see if thread with same name is running to wait a couple of seconds Pin
Keith Barrow7-Dec-12 5:21
mentorKeith Barrow7-Dec-12 5:21 
GeneralRe: asp.net threads, see if thread with same name is running to wait a couple of seconds Pin
jkirkerx7-Dec-12 6:47
memberjkirkerx7-Dec-12 6:47 
QuestionPagination worries Pin
cizu6-Dec-12 5:12
membercizu6-Dec-12 5:12 
AnswerRe: Pagination worries Pin
deflinek7-Dec-12 1:40
memberdeflinek7-Dec-12 1:40 
AnswerRe: Pagination worries Pin
AnkitGoel.com10-Dec-12 17:33
memberAnkitGoel.com10-Dec-12 17:33 
QuestionHtml Mail Formate Error Pin
mukusingh5-Dec-12 18:49
membermukusingh5-Dec-12 18:49 
AnswerRe: Html Mail Formate Error Pin
jkirkerx6-Dec-12 10:41
memberjkirkerx6-Dec-12 10:41 
GeneralRe: Html Mail Formate Error Pin
mukusingh6-Dec-12 19:18
membermukusingh6-Dec-12 19:18 
Questionhow to set og tag at runtime Pin
Jassim Rahma5-Dec-12 9:12
memberJassim Rahma5-Dec-12 9:12 
AnswerRe: how to set og tag at runtime Pin
deflinek7-Dec-12 1:50
memberdeflinek7-Dec-12 1:50 
Questionis this a correct og prefix? Pin
Jassim Rahma5-Dec-12 7:36
memberJassim Rahma5-Dec-12 7:36 
Questionasp.net vb Pin
Nada ALsalami5-Dec-12 3:09
memberNada ALsalami5-Dec-12 3:09 

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
Web04 | 2.8.150804.4 | Last Updated 3 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid