title: How to send and receive the POST request in asp.net?
body: <p>I have to send the  XML data from aspx using <code>POST</code> method and receive the parameters in another Aspx file. </p>
  
  <p>I have stored the XML data in <code>xmlValidator</code> named Javascript variable. I tried with the following code but it didn't work for me:</p>
  
  <p>For sending I wrote: <code>validator.aspx</code></p>
  
  <pre><code>&lt;script type = "text/javascript"&gt;
      function submit_a() {
          $.post("../All.aspx", { "data": validatorXML }, function (result) {
           alert(result);
          });
   }
  &lt;/script&gt;
  </code></pre>
  
  <p>And at the receiving point i.e. in <code>All.aspx</code>  page I wrote: (read from blog)</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" %&gt;
   &lt;%
     NameValueCollection nvc = Request.Form;
       Response.Write(nvc["data"]); //Here i have to call a method written in a .cs file
    // which return some data and print in `validator.aspx`
  %&gt;
  </code></pre>
  
  <p>But it prints nothing. What is the problem? </p>