Click here to Skip to main content
15,903,854 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: compare string with a list of strings Pin
ZurdoDev6-Sep-16 4:15
professionalZurdoDev6-Sep-16 4:15 
AnswerRe: compare string with a list of strings Pin
Member 1178145517-Sep-16 1:10
Member 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
Member 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
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 
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 
I am having a problem with an ajax call to a shared (static) vb.net function to obtain data from the database.
In a vb.net 2010 web form application, I needed to make a call from a javascript function to a shared (static) function to
obtain data from a sql server 2012 database. The first ajax call below is the original call and the second call is the one
I came up by copying the first call.
The problem is the first call always occurs before the second ajax call regardless of what I do with the code. There are cases when I
only want the second call to occur. By stepping through the code, I see that there is alot of jquery code that occurs.
$.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                 
            }               
        } 

Thus would you tell me what you think is wrong and/or tell me how I can change the second ajax call to try to solve this issue?   

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 

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.