jquery PageMethod saying the method does not exist
问题 i am trying to get a value of this asp.net function : [ScriptMethod, WebMethod] public static bool checkRefresh() { return isChanging; } by calling it in jquery using the PageMethod: var isAllowed = false; $("#edit").click(function () { PageMethods.editFunc(); PageMethods.checkRefresh(DisplayMyResult); //this line gives the error, though it's probably because it's first. }); function DisplayMyResult(ResultString) { isAllowed = ResultString; if (isAllowed == true || isAllowed == "true") {