title: Set Asp:button command argument dynamically
body: <p>Is it impossible to set CommandArgument Property on the go from .aspx page?
  I read it has got something to do with viewstate?</p>
  
  <p>What are  the alternative to send parameter to button click event?</p>
  
  <pre><code>&lt;% foreach (var s in person.Where(s =&gt; s.TableID == t.TableID)) { %&gt;
  
  &lt;asp:Button ID="Button1" runat="server" BorderWidth="0" Text="Remove" CommandArgument="&lt;%= s.Person.FirstName %&gt;" oncommand="Button1_Command"  /&gt;
  
   &lt;% } %&gt;
  </code></pre>