I have a set of 6 linkbutton controls on a page : click of each will show a part of data on the page.
How can I know which linkbutton was clicked in post back?
my sample code:
<asp:LinkButton id="a1" runat="server" Text="Name" />
<asp:LinkButton id="a2" runat="server" Text="Address" />
<asp:LinkButton id="a3" runat="server" Text="Details" />
Page_Load() {
if (this.IsPostBack()){
// Based on the link button clicked
// populate the text Box
// how to find out which button was clicked ?
}
}
Thanks
How can I know which linkbutton was clicked in post back?
my sample code:
<asp:LinkButton id="a1" runat="server" Text="Name" />
<asp:LinkButton id="a2" runat="server" Text="Address" />
<asp:LinkButton id="a3" runat="server" Text="Details" />
Page_Load() {
if (this.IsPostBack()){
// Based on the link button clicked
// populate the text Box
// how to find out which button was clicked ?
}
}
Thanks