摘要:PageMethods呼叫整理
在.aspx裡透過Javascript呼叫本身所寫程序的方法:
1.頁面加上ScriptManager控制項,設定EnablePageMethods="true"。
2.編寫程序,只允許static,上面加 [System.Web.Services.WebMethod]。






3.編寫Javascript呼叫














摘要:PageMethods呼叫整理
在.aspx裡透過Javascript呼叫本身所寫程序的方法:
1.頁面加上ScriptManager控制項,設定EnablePageMethods="true"。
2.編寫程序,只允許static,上面加 [System.Web.Services.WebMethod]。
3.編寫Javascript呼叫