Click here to Skip to main content
15,884,739 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionado.net Pin
subbaahrao30-Aug-16 19:23
subbaahrao30-Aug-16 19:23 
AnswerRe: ado.net Pin
Richard MacCutchan30-Aug-16 21:03
mveRichard MacCutchan30-Aug-16 21:03 
AnswerRe: ado.net Pin
ZurdoDev6-Sep-16 8:34
professionalZurdoDev6-Sep-16 8:34 
QuestionAjax error handling logic Pin
dcof27-Aug-16 7:29
dcof27-Aug-16 7:29 
GeneralRe: Ajax error handling logic Pin
Richard MacCutchan27-Aug-16 20:33
mveRichard MacCutchan27-Aug-16 20:33 
GeneralRe: Ajax error handling logic Pin
dcof29-Aug-16 6:17
dcof29-Aug-16 6:17 
GeneralRe: Ajax error handling logic Pin
Richard MacCutchan29-Aug-16 6:28
mveRichard MacCutchan29-Aug-16 6:28 
AnswerRe: Ajax error handling logic Pin
Nathan Minier29-Aug-16 1:40
professionalNathan Minier29-Aug-16 1:40 
Have a look at the docs. The error function will be passed 3 arguments, and you can pas those to your callback determine the error type.

jQuery.ajax() | jQuery API Documentation[^]

You just need to rewrite your AjaxFailed function to accept those arguments, call AjaxFailed from a function() block, and pass the step where it failed through as well. You could even pass them as a parameter object for flexibility. Something like:
JavaScript
$.ajax({
   ...
   error: function(xhr,type,text){
      AjaxFailed({
         errorType: type, 
         errorText: text,
         target: 'Some descriptor of what step you were on...or something'
      });
   }
}
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

AnswerRe: Ajax error handling logic Pin
2374131-Aug-16 14:44
2374131-Aug-16 14:44 
GeneralRe: Ajax error handling logic Pin
Nathan Minier1-Sep-16 1:01
professionalNathan Minier1-Sep-16 1:01 
GeneralRe: Ajax error handling logic Pin
237411-Sep-16 6:17
237411-Sep-16 6:17 
GeneralRe: Ajax error handling logic Pin
Nathan Minier1-Sep-16 8:25
professionalNathan Minier1-Sep-16 8:25 
Questionerror message on master page Pin
classy_dog27-Aug-16 4:03
classy_dog27-Aug-16 4:03 
AnswerRe: error message on master page Pin
jkirkerx29-Aug-16 10:40
professionaljkirkerx29-Aug-16 10:40 
Questionajax call to shared (static) mehtod Pin
classy_dog27-Aug-16 3:45
classy_dog27-Aug-16 3:45 
AnswerRe: ajax call to shared (static) mehtod Pin
jkirkerx29-Aug-16 10:15
professionaljkirkerx29-Aug-16 10:15 
Questionasp.net javascript issue Pin
Member 1178145525-Aug-16 5:36
Member 1178145525-Aug-16 5:36 
AnswerRe: asp.net javascript issue Pin
jkirkerx25-Aug-16 9:13
professionaljkirkerx25-Aug-16 9:13 
GeneralRe: asp.net javascript issue Pin
Member 1178145525-Aug-16 18:00
Member 1178145525-Aug-16 18:00 
QuestionWhich Property of Grid View would help me? Pin
Usman ali24-Aug-16 22:31
Usman ali24-Aug-16 22:31 
AnswerRe: Which Property of Grid View would help me? Pin
Richard Deeming25-Aug-16 2:11
mveRichard Deeming25-Aug-16 2:11 
Questionweb form gridview control Pin
dcof23-Aug-16 7:08
dcof23-Aug-16 7:08 
QuestionI have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft22-Aug-16 22:57
Abhijit Mindcraft22-Aug-16 22:57 
AnswerRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
deepankarbhatnagar23-Aug-16 0:20
professionaldeepankarbhatnagar23-Aug-16 0:20 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft23-Aug-16 0:48
Abhijit Mindcraft23-Aug-16 0:48 

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.