LinkButton Send Value to Code Behind OnClick

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=”YourValueHere” OnClick=”ENameLinkBtn_Click” > Then in your click event: protected void ENameLinkBtn_Click(object sender, EventArgs e) { LinkButton btn = (LinkButton)(sender); string yourValue = btn.CommandArgument; // do what you need here } Also you can set … Read more