LinkButton Send Value to Code Behind OnClick
问题 I have a ASP LinkButton Control and I was wondering how to send a value to the code behind when it is clicked? Is that possible with this event? <asp:LinkButton ID="ENameLinkBtn" runat="server" style="font-weight: 700; font-size: 8pt;" onclick="ENameLinkBtn_Click" ><%# Eval("EName") %></asp:LinkButton> 回答1: Just add to the CommandArgument parameter and read it out on the Click handler: <asp:LinkButton ID="ENameLinkBtn" runat="server" style="font-weight: 700; font-size: 8pt;" CommandArgument=