Hello.
I'm trying to call a WebMethod  from a Script but in the OnSuccess function I don not get the expected value that return the WebMethod. Instead, I get an Long strange html value.
Here My Code:
In my aspx.cs:

[System.Web.Services.WebMethod] public static string GetPageMethod() //PUBLIC and STATIC { return "Welcome PageMethods"; } in my aspx:
<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&g ...

Go to the complete details ...