<table class="table table-hover table-bordered table-striped">
<asp:Repeater ID="rptArtList" runat="server">
<HeaderTemplate>
<tr>
<th style="width: 100px;">
用户ID
</th>
<th style="width: 100px;">
用户名称
</th>
<th style="width: 60px;">
所在城市
</th>
<th style="width: 60px;">
操作
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td id="td1" runat="server">
<%# Eval("CustomerID")%>
</td>
<td>
<%# Eval("Name")%>
</td>
<td>
<%# Eval("CityName")%>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server" CssClass="btn btn-primary" OnClientClick="return Preview();">更改组别</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
原来只有3列 没有更改组别,现在需要多加这个功能,更改时会弹出窗口
现在图片中的ListID我已经拿到了,我想要再后台获取 当前行的 CustomerID 去数据库判断 具体数据 然后做修改,后台如何才能拿到当前行的CustomerID呢