title: JQuery AJAX post to asp.net webmethod never getting called?
body: <p>I am trying to send data from my javascript to an aspx webmethod with ajax. the Success option of ajax post is fired but my web method never getting called.
  the javascript code is:</p>
  
  <pre><code> $.ajax({
      type: "POST",
      url: '../About.aspx/GetWFData',
      data: "{sendData: '" + 5 + "'}",
      async: true,
      success: function (result) {
          alert("Bravo");
      },
      error: function (jqXHR, textStatus, errorThrown) {
          alert(textStatus);
          alert(errorThrown);
      }
  });
  </code></pre>
  
  <p>and the webmethod in the code behind is:</p>
  
  <pre><code> [WebMethod]
      public static string GetWFData(string sendData)
      {
          return String.Format("Hello");
      }
  </code></pre>