Click here to Skip to main content
15,887,344 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
deepankarbhatnagar23-Aug-16 3:43
professionaldeepankarbhatnagar23-Aug-16 3:43 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft23-Aug-16 20:45
Abhijit Mindcraft23-Aug-16 20:45 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
jkirkerx25-Aug-16 9:20
professionaljkirkerx25-Aug-16 9:20 
Questionadd data to more table relation in same time Pin
ahmed_sa20-Aug-16 12:05
ahmed_sa20-Aug-16 12:05 
AnswerRe: add data to more table relation in same time Pin
ahmed_sa21-Aug-16 5:11
ahmed_sa21-Aug-16 5:11 
Questionweb form message using master pages message and/or JavaScript message Pin
dcof18-Aug-16 12:07
dcof18-Aug-16 12:07 
AnswerRe: web form message using master pages message and/or JavaScript message Pin
John C Rayan19-Aug-16 2:24
professionalJohn C Rayan19-Aug-16 2:24 

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.