asp.net ajax客户端框架如何调用Page Method


asp.net ajax客户端框架如何调用Page Method

1:欲调用的页面方法必须声明为公有(Public)
2:该方法必须为静态方法(static)
3:该方法必须添加[System.Web.Services.WebMethod];
4:ScriptManager的EnablePageMethods="True"
5:在客户端使用如下格式调用:
PageMethods.[MethodName](parm1,parm2,...,callbackFunction);

posted @ 2017-08-19 21:56  风来风往风伤(TiAmo)  阅读(198)  评论(0编辑  收藏  举报