While calling web service using jquery displaying data in .net .cs page in div section. But when we are filtering data in search box option. So after entering each character control is hitting to server everytime.
So how we can mitigate this issue like all the data should come with the same way but when we filter data it should not posted back to server again n again.
Naimish MakwanaPosted Mar 13, 2023, 3:49 AM
Hello Deepak,
You can do following
Fetch all the data from the server using a jQuery AJAX request when the page loads and store it in an array or object in JavaScript. Then you can locally filter data in array or object.
You might use change event or any key up/down event to get data from server. You can use blur or focus out event on textbox so it will hit only once.
Thanks
Naimish Makwana