PageMethods of ASP.NET AJAX are used to call server side code in client side code. PageMethods are implemented in code behind file. These are public static methods and are annoted with [WebMethod] attribute.
public static string function1(string param1)
//fetch returned value on success.
alert("Some error occurred during called page method: function1.");
Asked In: Many Interviews |