<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" />
PageMethods.fsyzm($("#shouji").val(), funReady, funError); function funReady(result) { if (result != null) { } else { } } // err 就是后台方法返回的错误信息 function funError(err) { alert("Error:" + err._message); }
[System.Web.Services.WebMethod] public static string fsyzm(string sj) { //cl }