title: JQuery + Page Methods: Method is Never Called
body: <p>I am just starting to mess around with Page Methods and jQuery together with not much success.</p>
  
  <p>Below is my sample code...</p>
  
  <p><strong>Default.aspx.cs</strong></p>
  
  <pre><code>[WebMethod]
  public static string test()
  {
       return "testing 123";
  }
  </code></pre>
  
  <p><strong>test.js</strong></p>
  
  <pre><code>$(document).ready(function()
  {
      $("#Result").click(function()
      {
          $.ajax({
              type: "POST",
              url: "Default.aspx/test",
              data: "{}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function(msg)
              {
                  alert(msg);
              }
          });
      });
  });
  </code></pre>
  
  <p>If I set a breakpoint at 'return "testing 123";' it never gets hit, also when I try doing <a href="http://localhost/default.aspx/test" rel="nofollow noreferrer">http://localhost/default.aspx/test</a> I get the whole page posted back, same with the jQuery function.</p>
  
  <p>I have also tried using scriptmanager and MS AJAX PageMethods.test(); with the same exact result.</p>