title: AJAX call not working in ASP.net
body: <p>I have problem while using <strong>AJAX</strong> in <strong>ASP.Net</strong>.getName not fired.. anything wrong.? Please find the below samples and suggest me.</p>
  
  <pre><code> ` &lt;input type="button" value="Bulk Save" id="savebtn" /&gt;`
  
  $("#savebtn").click(function () {
              var firstName = "SAmple";
              var lastName = "Name";
              var param = { fs: firstName, ls: lastName };
              $.ajax({
                  type: "POST",
                  url: '&lt;%=ResolveUrl("~/Features.aspx/getName")%&gt;',
                  data:JSON.stringify(param),
                  contentType: "application/json; charset=utf-8",
                  dataType: "json",
                  //async:true
              })
          });
  
      [WebMethod]
      public static void getName(string fs, string ls)
      {
  
      }
  </code></pre>