title: Server tag function calls vs AJAX web methods
body: <p>Is there any difference between  </p>
  
  <pre><code>var stringValue = '&lt;%=GetStringValue();%&gt;';
  </code></pre>
  
  <p>and calling the same codebehind function via ajax? </p>
  
  <p>Both take parameters easily enough, and seem to occur at the same point in the lifecycle (eg after the client is fully loaded, server tags do not preload). The only difference I can see is that ajax web methods have to be <code>public static</code> while the <code>static</code> can be omitted for a server tag. </p>
  
  <p>Are there any security differences, and are the above assertions correct?</p>