this is possible because new feature ScriptService in asp.net.
(1)methos should be declared as Public and Static
(2)[WebMethod] attribute must be attached with methos.
(3)At least One ScriptManager Should be on Page.
(4)Set EnablePageMethods of ScriptManager to "true"
once you complete this steps.
Here is the server side methos looks like:
public static string GetName(string Name)
return "Hello " + Name + "!!!";
After Writing this You can Call GetName method of your asp.net Page like:
here first parameter is argument,second one is Success Callback and third one is Failure Callbak..
Hope this will will help you .