Click here to Skip to main content
12,508,112 members (40,230 online)
   

ASP.NET

 
AnswerRe: checkedchange event of gridview in javascript Pin
Sampath Kumar Sathiya24-Dec-12 0:20
memberSampath Kumar Sathiya24-Dec-12 0:20 
GeneralRe: checkedchange event of gridview in javascript Pin
Ravi_kant24-Dec-12 7:40
memberRavi_kant24-Dec-12 7:40 
Questionupdated data from gridview Pin
Member 970720723-Dec-12 0:30
memberMember 970720723-Dec-12 0:30 
AnswerRe: updated data from gridview Pin
Ali Al Omairi(Abu AlHassan)24-Dec-12 4:31
memberAli Al Omairi(Abu AlHassan)24-Dec-12 4:31 
AnswerRe: updated data from gridview Pin
Sandeep Mewara25-Dec-12 19:35
mvpSandeep Mewara25-Dec-12 19:35 
Question.net question Pin
Tarani Dutt Joshi21-Dec-12 23:53
memberTarani Dutt Joshi21-Dec-12 23:53 
AnswerRe: .net question Pin
Richard MacCutchan22-Dec-12 0:18
mvpRichard MacCutchan22-Dec-12 0:18 
AnswerRe: .net question Pin
MaulikDusara24-Dec-12 21:38
memberMaulikDusara24-Dec-12 21:38 
AnswerRe: .net question Pin
Sandeep Mewara25-Dec-12 19:33
mvpSandeep Mewara25-Dec-12 19:33 
QuestionWebRequest Pin
cdpsource21-Dec-12 14:16
membercdpsource21-Dec-12 14:16 
Questionwebpage has resulted in too many redirects Pin
Jassim Rahma21-Dec-12 9:46
memberJassim Rahma21-Dec-12 9:46 
AnswerRe: webpage has resulted in too many redirects Pin
jkirkerx22-Dec-12 18:50
memberjkirkerx22-Dec-12 18:50 
GeneralRe: webpage has resulted in too many redirects Pin
Jassim Rahma23-Dec-12 8:36
memberJassim Rahma23-Dec-12 8:36 
GeneralRe: webpage has resulted in too many redirects Pin
jkirkerx23-Dec-12 8:47
memberjkirkerx23-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
memberJassim Rahma24-Dec-12 9:10 
GeneralRe: webpage has resulted in too many redirects Pin
jkirkerx24-Dec-12 13:05
memberjkirkerx24-Dec-12 13:05 
Questionpop up on mouse over on a image button Pin
Yasir88721-Dec-12 6:42
memberYasir88721-Dec-12 6:42 
AnswerRe: pop up on mouse over on a image button Pin
AnalogNerd21-Dec-12 9:26
memberAnalogNerd21-Dec-12 9:26 
GeneralRe: pop up on mouse over on a image button Pin
Yasir88721-Dec-12 17:09
memberYasir88721-Dec-12 17:09 
AnswerRe: pop up on mouse over on a image button Pin
n.podbielski22-Dec-12 21:50
membern.podbielski22-Dec-12 21:50 
AnswerRe: pop up on mouse over on a image button Pin
CommDev23-Dec-12 14:35
memberCommDev23-Dec-12 14:35 
Questionasp.net Pin
Nitin Pant20-Dec-12 21:43
memberNitin Pant20-Dec-12 21:43 
AnswerRe: asp.net Pin
Richard MacCutchan20-Dec-12 22:57
mvpRichard MacCutchan20-Dec-12 22:57 
RantRe: asp.net Pin
Richard Deeming21-Dec-12 1:31
memberRichard Deeming21-Dec-12 1:31 
GeneralRe: asp.net Pin
Richard MacCutchan21-Dec-12 2:04
mvpRichard MacCutchan21-Dec-12 2:04 
JokeRe: asp.net Pin
n.podbielski22-Dec-12 21:54
membern.podbielski22-Dec-12 21:54 
AnswerRe: asp.net Pin
J4amieC20-Dec-12 23:26
memberJ4amieC20-Dec-12 23:26 
AnswerRe: asp.net Pin
ProgramFOX20-Dec-12 23:52
memberProgramFOX20-Dec-12 23:52 
AnswerRe: asp.net Pin
CommDev23-Dec-12 14:15
memberCommDev23-Dec-12 14:15 
QuestionProblem with change Gridview cell value Pin
jojoba201119-Dec-12 23:24
memberjojoba201119-Dec-12 23:24 
AnswerRe: Problem with change Gridview cell value Pin
CommDev23-Dec-12 14:24
memberCommDev23-Dec-12 14:24 
QuestionHow to add anchor tag in uploded html page Pin
VyasRavi677619-Dec-12 18:54
memberVyasRavi677619-Dec-12 18:54 
AnswerRe: How to add anchor tag in uploded html page Pin
@AmitGajjar20-Dec-12 5:39
member@AmitGajjar20-Dec-12 5:39 
GeneralRe: How to add anchor tag in uploded html page Pin
chirag774920-Dec-12 21:34
memberchirag774920-Dec-12 21:34 
AnswerRe: How to add anchor tag in uploded html page Pin
CommDev20-Dec-12 20:04
memberCommDev20-Dec-12 20:04 
GeneralRe: How to add anchor tag in uploded html page Pin
chirag774920-Dec-12 20:14
memberchirag774920-Dec-12 20:14 
GeneralRe: How to add anchor tag in uploded html page Pin
n.podbielski22-Dec-12 21:57
membern.podbielski22-Dec-12 21:57 
GeneralRe: How to add anchor tag in uploded html page Pin
n.podbielski22-Dec-12 21:57
membern.podbielski22-Dec-12 21:57 
Questionjquery for asp.net sometimes work sometimes doesn't work Pin
Dhyanga19-Dec-12 11:57
memberDhyanga19-Dec-12 11:57 
AnswerRe: jquery for asp.net sometimes work sometimes doesn't work Pin
jkirkerx19-Dec-12 17:25
memberjkirkerx19-Dec-12 17:25 
GeneralRe: jquery for asp.net sometimes work sometimes doesn't work Pin
Dhyanga19-Dec-12 17:50
memberDhyanga19-Dec-12 17:50 
AnswerRe: jquery for asp.net sometimes work sometimes doesn't work Pin
jkirkerx19-Dec-12 18:09
memberjkirkerx19-Dec-12 18:09 
QuestionOnly 1 use for admin? Pin
xnaLearner19-Dec-12 1:28
memberxnaLearner19-Dec-12 1:28 
QuestionHave userID in view, need userName posted Pin
xnaLearner19-Dec-12 0:41
memberxnaLearner19-Dec-12 0:41 
AnswerRe: Have userID in view, need userName posted Pin
Matt U.19-Dec-12 4:11
memberMatt U.19-Dec-12 4:11 
AnswerRe: Have userID in view, need userName posted Pin
CommDev20-Dec-12 22:55
memberCommDev20-Dec-12 22:55 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 Pin
sr15919-Dec-12 0:08
membersr15919-Dec-12 0:08 
QuestionHow to access 'name' given when user registers Pin
xnaLearner18-Dec-12 22:52
memberxnaLearner18-Dec-12 22:52 
AnswerRe: How to access 'name' given when user registers Pin
xnaLearner18-Dec-12 22:58
memberxnaLearner18-Dec-12 22:58 
Questionsequence contains no elements Pin
xnaLearner18-Dec-12 2:44
memberxnaLearner18-Dec-12 2:44 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 27 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid