Hi,
How can I pass a variable into CommandArgument ? Any help would be greatly appreciated. Below is the code:
<table border style="width: 100%;">
<tr>
<th>Phone ID</th>
<th>Court Units</th>
<th>Make Model</th>
<th>Edit</th>
</tr>
<% for (int i = 0; i < phoneRows; i++)
{%>
<tr>
<td><%= phoneID[i]%></td>
<td><%= phoneCU[i]%></td>
<td><%= phoneMake[i]%></td>
<td>
<% String indx = i.ToString(); %>
<asp:Button ID="EditPhone" CommandArgument='<%# EVAL("indx")%>' runat="server" Text="Edit" OnClick="EditPhone_Click" />
</td>
</tr>
<% } %>
</table>
How can I pass 'indx' into CommandArgument ??
Thanks in advance,
Hoa