尝试将vb.net变量添加到按钮标签。我不知道语法。它说的是commandArgument,我正在尝试引用for循环。
<%For i = 0 To NumElements - 1%>
<tr>
<td>
<b><%Response.Write((IdentityList.Item(i).ReportNumber))%></b>
</td>
<asp:Button
ID="ButtonDetails"
runat="server"
Text="Details"
class="button buttonStyle"
value="Details"
CommandName="Identity"
commandArgument="<%i%>"
OnCommand="ButtonDetails_Click"
/>
</tr>
<%Next%>