Click here to Skip to main content
14,830,769 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: compare string with a list of strings Pin
Member 1178145517-Sep-16 1:10
MemberMember 1178145517-Sep-16 1:10 
GeneralRe: compare string with a list of strings Pin
ZurdoDev17-Sep-16 3:13
professionalZurdoDev17-Sep-16 3:13 
GeneralRe: compare string with a list of strings Pin
Member 1178145518-Sep-16 20:17
MemberMember 1178145518-Sep-16 20:17 
GeneralRe: compare string with a list of strings Pin
ZurdoDev19-Sep-16 0:39
professionalZurdoDev19-Sep-16 0:39 
Questionado.net Pin
subbaahrao30-Aug-16 19:23
Membersubbaahrao30-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
Memberdcof27-Aug-16 7:29 
In 2 ajax calls that are listed below, there are 2 places that say 'error: AjaxFailed'.  

$.ajax({ 
                    type: "POST", 
                    contentType: "application/json; charset=utf-8", 
                    url: document.location.pathname + "/GetStudentLetter", 
                    data: "{ " + strData + " }", 
                    dataType: "json", 
                    success: function (data) { 
                        LoadEditor(JSON.parse(data.d), milestone); 
                    }, 
                    error: AjaxFailed 
                });            
            if (milestone == '999') { 
                $.ajax({ 
                    type: "POST", 
                    contentType: "application/json; charset=utf-8", 
                    url: document.location.pathname + "/Gettattschyr", 
                    data: "{ " + strData + " }", 
                    dataType: "json", 
                    success: function (data) { 
                        successtest(eval(data));                       
                    }, 
                    error: AjaxFailed 
                }); 
            }                
         }           
        function successtest(sletter) { 
            var sle = sletter 
            _txtattschyr = sletter.d 
            if (_txtattschyr > '1') { 
                alert('You have selected student(s) having more than one Entry for the current school year. '); 
                return                 
            }               
I would like to have better error handling so that I know what is exactly wrong. From the first ajax call, I got a 500 server error problem 
in production. By guessing, I found out that I needed to increase the maximum size of the jason file that is posted above.

Thus can you tell and/or point me to urls that will show me better error logic that I can use?

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
Memberdcof29-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 
AnswerRe: Ajax error handling logic Pin
2374131-Aug-16 14:44
Member2374131-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
Member237411-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
Memberclassy_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
Memberclassy_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
MemberMember 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
MemberMember 1178145525-Aug-16 18:00 
QuestionWhich Property of Grid View would help me? Pin
Usman ali24-Aug-16 22:31
MemberUsman 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 

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.