Skip to content
Loading
The exampe of ajax call
  1. $.ajax({  
  2. type: "POST",  
  3. url: "functiondefine page.aspx/GetData",  
  4. contentType: "application/json; charset=utf-8",  
  5. dataType: "json",  
  6. success: function (response) {  
  7. projects = response.d;  
  8. },  
  9. failure: function (response) {  
  10. alert(response.d);  
  11. }  
  12. });  
If not working display me the result using alert method
+1
  • +2
    might be your database is having many more data matching with character you trying to do autocomplete, so everytime you type an character is goes to db and user need to wait until is fetch it from db . its better to load all the data on load and by using javascript you can filter from array in frontend side instead of filtering it again n again through db . it wil make your autocomplete faster
    +2
  • 0
    Thank You Very much.
    0
  • Laxmidhar Sahoo
    0
    If face problem convey
    0