title: ASP.Net Ajax - PageMethods Synchronous call and retrieval of results
body: <p><strong>How to ASP.Net Ajax - PageMethods Synchronous call and retrieval of results ?</strong></p>
  
  <p>Currently i am doing following <strong>async</strong> call and working with data : </p>
  
  <pre><code>function checkName(name) {
       PageMethods.IsAvailable(name, onSuccess);
  }
  
  function onSuccess(result, context, method) {
      //... do something with result ....
  }
  </code></pre>
  
  <p>How can i do same <strong>synchronously with result</strong>?</p>