title: How to post data using jQuery in ASP.NET?
body: <p>I have an ASP.NET application in which i want to post data using jQuery to another page. It means i want post the data of page.</p>
  
  <p>How can i do this with jQuery or AJAX?</p>
  
  <p>Please help me.</p>
  
  <pre><code> $(document).ready(function() {
           alert("start");
          $("#btnSave").click(function() {
          alert("start1");
              var aa = 'bb';
              var json = "{'ItemName':'" + aa + "'}";
              alert("start2");
              var ajaxPage = "Default3.aspx?Save=1"; //this page is where data is to be retrieved and processed
              alert("start3");
              var options = {
                  type: "POST",
                  url: ajaxPage, 
                  data: json,
                  contentType: "application/json;charset=utf-8",
                  dataType: "json",
                  async: false,
                  success: function(response) {
                      alert("success: " + response);
                  },
                  error: function(msg) { alert("failed: " + msg); }
  
              };
  </code></pre>
  
  <p>alert("start4");</p>
  
  <pre><code>        });
  
  
  
      });
  </code></pre>
  
  <p>I am using this code I am getting all alert response but its posting page.</p>