Click here to Skip to main content
15,913,246 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: checkedchange event of gridview in javascript Pin
Sampath Kumar Sathiya24-Dec-12 0:20
Sampath Kumar Sathiya24-Dec-12 0:20 
GeneralRe: checkedchange event of gridview in javascript Pin
Ravi_kant24-Dec-12 7:40
Ravi_kant24-Dec-12 7:40 
Questionupdated data from gridview Pin
Member 970720723-Dec-12 0:30
Member 970720723-Dec-12 0:30 
AnswerRe: updated data from gridview Pin
Ali Al Omairi(Abu AlHassan)24-Dec-12 4:31
professionalAli Al Omairi(Abu AlHassan)24-Dec-12 4:31 
AnswerRe: updated data from gridview Pin
Sandeep Mewara25-Dec-12 19:35
mveSandeep Mewara25-Dec-12 19:35 
Question.net question Pin
Tarani Dutt Joshi21-Dec-12 23:53
Tarani Dutt Joshi21-Dec-12 23:53 
AnswerRe: .net question Pin
Richard MacCutchan22-Dec-12 0:18
mveRichard MacCutchan22-Dec-12 0:18 
AnswerRe: .net question Pin
MaulikDusara24-Dec-12 21:38
MaulikDusara24-Dec-12 21:38 
AnswerRe: .net question Pin
Sandeep Mewara25-Dec-12 19:33
mveSandeep Mewara25-Dec-12 19:33 
QuestionWebRequest Pin
cdpsource21-Dec-12 14:16
cdpsource21-Dec-12 14:16 
Questionwebpage has resulted in too many redirects Pin
Jassim Rahma21-Dec-12 9:46
Jassim Rahma21-Dec-12 9:46 
AnswerRe: webpage has resulted in too many redirects Pin
jkirkerx22-Dec-12 18:50
professionaljkirkerx22-Dec-12 18:50 
GeneralRe: webpage has resulted in too many redirects Pin
Jassim Rahma23-Dec-12 8:36
Jassim Rahma23-Dec-12 8:36 
GeneralRe: webpage has resulted in too many redirects Pin
jkirkerx23-Dec-12 8:47
professionaljkirkerx23-Dec-12 8:47 
Yes that is correct.

So you make an exitCode as an integer = 2

exitCode integer = 2

do your checks,

in the catch, make exitCode = 1

in the Try, exitCode = 0

So in the finally, if the exitCode is 2, it's complete failure
if the exitCode is 1, you trapped the error, log it or display it
if the exitCode is 0, the program ran correctly

  exitCode integer = 2;

Try
  // Run your code
  exitCode = 0

catch ex as exception
  exitCode = 1

Finally
  switch exitCode {
     case 2

     case 1

     case 0
      response.redirect("~/correct");
    }
  }
}

GeneralRe: webpage has resulted in too many redirects Pin
Jassim Rahma24-Dec-12 9:10
Jassim Rahma24-Dec-12 9:10 
GeneralRe: webpage has resulted in too many redirects Pin
jkirkerx24-Dec-12 13:05
professionaljkirkerx24-Dec-12 13:05 
Questionpop up on mouse over on a image button Pin
Yasir88721-Dec-12 6:42
Yasir88721-Dec-12 6:42 
AnswerRe: pop up on mouse over on a image button Pin
AnalogNerd21-Dec-12 9:26
AnalogNerd21-Dec-12 9:26 
GeneralRe: pop up on mouse over on a image button Pin
Yasir88721-Dec-12 17:09
Yasir88721-Dec-12 17:09 
AnswerRe: pop up on mouse over on a image button Pin
n.podbielski22-Dec-12 21:50
n.podbielski22-Dec-12 21:50 
AnswerRe: pop up on mouse over on a image button Pin
CommDev23-Dec-12 14:35
CommDev23-Dec-12 14:35 
Questionasp.net Pin
Nitin Pant20-Dec-12 21:43
Nitin Pant20-Dec-12 21:43 
AnswerRe: asp.net Pin
Richard MacCutchan20-Dec-12 22:57
mveRichard MacCutchan20-Dec-12 22:57 
RantRe: asp.net Pin
Richard Deeming21-Dec-12 1:31
mveRichard Deeming21-Dec-12 1:31 
GeneralRe: asp.net Pin
Richard MacCutchan21-Dec-12 2:04
mveRichard MacCutchan21-Dec-12 2:04 

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

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