title: how to use __doPostBack function in asp.net
body: <p>i am trying to use <code>__doPostBack</code> function so i can force my page to do post pack on the page load but i am having some difficulties understanding. </p>
  
  <p>when i was looking at the examples online.   On button click, i want to do the post back but not sure how to complete the code in the code behind.  </p>
  
  <p>Here is what i have so far:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          function DoPostBack() {
              __doPostBack('btnNew', 'MyArgument');
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>Here is my button</p>
  
  <pre><code> &lt;asp:Button ID="btnNew" runat="server" CausesValidation="False" CommandName="New" OnClick="DoPostBack()" Text="Create" /&gt;
  </code></pre>
  
  <p>I don't seem to understand to use "MyArgument" in the code behind.  What do i need to do in the code behind so it does post back on the page load?  thanks in advance for the assistance. </p>