<td> <asp:CheckBoxList ID="CheckBoxList1" runat="server" Width="227px" Style="margin-left: 0px"> <asp:ListItem>xx</asp:ListItem> <asp:ListItem>yy</asp:ListItem> <asp:ListItem>zz</asp:ListItem> </asp:CheckBoxList> </td>
foreach(ListItem li in CheckBoxList1.Items) { if(li.Selected == true) { //Write here your code for saving } }
foreach (ListItem li in CheckBoxList1.Items) { if (li.Selected == true) { //your code is here Response.Write("<script>alert('"+li.Text +"')</script>"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)