title: Unable to call aspx page web method using jquery ajax
body: <p>Getting aspx page html when trying to call web method on aspx page.Here is the jQuery code</p>
  
  <pre><code>  $(function () {
          $.ajax({
              type: 'POST',
              url: 'Default.aspx/Hello',
              data: "{}",
              async: false,
              success: function (response) {
                  console.log('Success: ', response);
              },
              error: function (error) {
                  console.log('Error: ', error);
              }
          });
      });
  </code></pre>
  
  <p>And here is the web method code</p>
  
  <pre><code> [System.Web.Services.WebMethod]
      public static string Hello()
      {
          string returnString = "hoiiiiiii";
          return returnString;
      }
  </code></pre>
  
  <p>Can any one point out what may be wrong.</p>