You can use page methods as they call.
They are essentially methods on Page , but are declared as static.
public class MyPage : System.Web.UI.Page { [WebMethod] public static string Reverse(string message) { return message.Reverse(); } }
They can then be used as follows from client scripts:
function reverseMyString(message) {
They are pretty neat compared to asmx web services, as they can remain within the same web form features that a particular page is created.
Mikael Γstberg
source share