GridView中获取当前行的参数值CommandArgunent属性值
前台:
<asp:TemplateField HeaderText="操作">
<ItemTemplate>
<asp:LinkButton ID="lbtnQianRu" runat="server" CommandName="QianRu" CommandArgument='<%# Eval("Id") %>'>签入</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
后台:
在GridView的 RowDataBound事件中
用e.CommandArgument取值