i need to know how to call non-static server side method from client side by jquery. i search google and came to know that it is not possible. i am aware of how to call server side static method by jquery. here one small snippet
[WebMethod]
public static string yourmethod(/*params*/)
{
return "Hello World!"
}
$.ajax({
type: 'POST',
data: /*Your Data*/,
dataType: 'JSON',
contentType: 'application/json',
url: '/yourpage.aspx/yourmethod',//Method to call
success: function(result, status) {
//handle return data
},
error: function(xhr, status, error) {
//handle error
}
});
but there must be some mechanism by which we can call server side non static function by jquery or plain javascript because update panel, Ajax.Net library enable users to call server side function from client side. when we put a button in update panel and when we click that button then corresponding server side function get invoke.........so tell me how it is possible. how update panel call server side function behind the scene. please discuss how update panel is developed and how it can call server side method.