title: pass data from client side to server before page_load executes
body: <p>A button on html page redirect to aspx page with <code>window.open()</code> command.
  There are certain data on the html page which i want on server-side of the aspx page before <code>page_load</code> executes.</p>
  
  <p>following is my code on the html page which redirects to the aspx page</p>
  
  <pre><code>var win = window.open('mypage.aspx','_self');
  win.args=this.Args;
  </code></pre>
  
  <p>following is my code on aspx page which tries to catch the data passed from the html page</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  
   var readyStateCheckInterval = setInterval(function () {
              if (document.readyState === "loading") {
                  $('#hdnArgs').val(window.args);
                  clearInterval(readyStateCheckInterval);
              }
          }, 100);
  
  &lt;/script&gt;
  
  &lt;input type='hidden' id='hdnArgs' runat='server'/&gt;
  </code></pre>
  
  <p>Following is the code on the aspx.cs file which tries to read the hidden variable's value which has been set from the data of the html page</p>
  
  <pre><code>protected void Page_Load(object sender, eventargs e)
  {
      string data = hdnArgs.value; //this is always null
  }
  </code></pre>
  
  <p>But what I get is always 'null'.</p>
  
  <p>The <code>readyStateCheckInterval</code> sets the hidden variable value after the <code>page_load</code> event is completed.</p>
  
  <p>I want the value of hidden variable before <code>page_load</code>.
  How can I get that?</p>