assign a value from a foreach loop to an asp:button CommandArgument
<p>The code behind file creates a list of employees and the asp.net page loops through list.
Now, How do I assign the employeedID to the commandArgument of an asp:button?</p>

<pre><code>  &lt;%foreach(var employee in employeesList){%&gt;
    &lt;tr&gt;
     &lt;td&gt;&lt;%=employee.firstName%&gt;&lt;/td&gt;
     &lt;td&gt;&lt;%=employee.lastName%&gt;&lt;/td&gt;
    /*How to access employee.Id in the commandArgument? */
    &lt;td&gt;&lt;asp:Button ID="btnDeleteEmployee" runat="server" CommandArgument=''    Text="Delete" OnCommand="btnDeleteEmployee_Click" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;%}%&gt;
</code></pre>
