在ASP.Net中,我可以使用Javascript和PageMethods调用用户控件WebMethod吗?

时间:2009-05-25 08:54:35

标签: asp.net web-services asmx pagemethods

它说PageMethods是未定义的。

1 个答案:

答案 0 :(得分:0)

是。你绝对可以。只需确保WebMethod已声明为public static,您已使用正确的命名空间引用它,并且EnablePageMethods的{​​{1}}属性设置为ScriptManager