1. Try setting
EnablePageMethods="true"
in the script manager tag
<asp:scriptmanager id="ScriptManager1" runat="server" enablepagemethods="true" xmlns:asp="#unknown" />
2. To enable the method as a PageMethod, add the attribute [WebMethod] on top of the method
3. Page methods needs to be static in code behind
4. Javascript Calling:
PageMethods.Method1(CallSuccess, CallFailed);
function CallSuccess(res, destCtrl)
{
Alert(res);
}
function CallFailed(res, destCtrl)
{
alert(res.get_message());
}