What does PageMethods actually return?
<p>This code gets the return value from public static string in the code behind and shows what is returned in an alert.</p>

<pre><code>&lt;script type="text/javascript"&gt; 
function GetFromServer() 
{ 
PageMethods.GetHello(OnGetHelloComplete);
} 
function OnGetHelloComplete(result, userContext, methodName)
{
alert("Result: " + result + "\n" + 
"Context: " + userContext + "\n" + 
"Method name: " + methodName); 
} 
&lt;/script&gt;
</code></pre>

<p>The web method in the code behind is a public static string. But what is it returning?</p>

<p>Why can't I write ...</p>

<pre><code>var myString = PageMethods.GetHello()
</code></pre>

<p>Where are 'result' and 'userContext' and 'methodName' appearing from?</p>

<p>EDIT: Please ignore, I had a look at the source and saw what is being output there.</p>
