This code gets the return value from public static string in the code behind and shows what is returned in an alert.\[code\]<script type="text/javascript"> function GetFromServer() { PageMethods.GetHello(OnGetHelloComplete);} function OnGetHelloComplete(result, userContext, methodName){alert("Result: " + result + "\n" + "Context: " + userContext + "\n" + "Method name: " + methodName); } </script>\[/code\]The web method in the code behind is a public static string. But what is it returning?Why can't I write ...\[code\]var myString = PageMethods.GetHello()\[/code\]Where are 'result' and 'userContext' and 'methodName' appearing from?EDIT: Please ignore, I had a look at the source and saw what is being output there.