title: Jquery - Pass asp button command argument with jquery
body: <p>I have asp button:</p>
  
  <pre><code>&lt;asp:button ID="btn1" runat="server" CommandArgument="" CssClass="btn1" OnClick="button_click"&gt;&lt;/asp:button&gt;
  </code></pre>
  
  <p>and script: </p>
  
  <pre><code>$("a").click(function () {
              var val = $(this).attr('id').toString();                            
              $('.btn1').attr('CommandArgument',val);
              alert($('.btn1').attr('CommandArgument').toString());
              $('.btn1').click();
          });
  </code></pre>
  
  <p>after click it alerts me command argument. But on next step - when i trigger btn1 click with jquery it goes to codebehind and command argument is empty. Can i pass somehow command argument with jquery?</p>
  
  <p>I've tried to save value to global variables but after postback they're all empty. And i don't want to use cookies or viewstate for that.</p>
  
  <p>Thanks! </p>