gowthaman8870226416
Awesome Coding !! :)
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <asp:CheckBoxList ID="chk1" runat ="server" > <asp:ListItem Text ="Jesus"></asp:ListItem> <asp:ListItem Text ="Bible"></asp:ListItem> </asp:CheckBoxList> <asp:LinkButton ID="lnk1" runat ="server" Text ="Click" onclick="lnk1_Click"> </asp:LinkButton> </form> </body> </html>
protected void lnk1_Click(object sender, EventArgs e) { for(int i=0;i<=chk1.Items.Count-1;i++) { chk1.Items.Selected=true; } }
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Login to post response