I Get a undefined OnSuccess
Hello.
I'm getting a Undefined value OnSuccess response and never fire a WebMethod.... (asp.Net vs2013, Framework 4.5 jquery 2.1.1)
This is MyCode:
- <script>
- function fun() {
- PageMethods.GetPageMethod(onSucceed, onError);
- return false;
- }
- function onSucceed(result) {
- alert(result); // HERE I Get a long HTML as Server Response instead a "Welcome PageMethods" string
- } // By the way, debugging never reach a breakpoint inside GetPageMethod
- function onError(result) {
- }
- </script>