PageMethods is not Defined in ASPX Page
问题 I'm looking at some old code that I can only assume worked at one time. MyPage.aspx: function GetCompanyList(officeId) { var companyList = document.getElementById('<%= CompanyDropDown.ClientID %>'); if (companyList.length == 0) PageMethods.GetCompanyList(officeId, OnGetCompanyList); else EditCompany(); } And: <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" /> Code behind: [System.Web.Services.WebMethod()] [System.Web.Script.Services.ScriptMethod()] public