Does anyone know how can I using jquery to retrieve the data from the function in aspx.cs in .net c# web application?
Example:
if I have a function call public void getData(string serachValue). When the user type in the word in the textbox, it will use jquery to call getData() to return the result and show on the screen
First make this function static and add webmethod attribute:
Then use ajax() jquery method: http://api.jquery.com/jQuery.ajax/
And the best article talking about this is there: http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/