EnablePageMethods实际上只有一个方法相互作用
Page被子类
public,
static及归属作为
WebMethod。
GetCompanyList有2个,也需要是
static。
[System.Web.Services.WebMethod()][System.Web.script.Services.scriptMethod()]public static IEnumerable<CompanyMinimum> GetCompanyList(int officeId) { // ...}
而且,我怀疑正在发生的事情是,
PageMethods如果找不到任何具有全部3种方法的方法,它将留下未定义的客户端。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)