<asp:ListItem Text="Diploma" Selected="True" Value="1"></asp:ListItem>
protected void buttonSelectAll_Click(object sender, EventArgs e)
{
foreach (ListItem li in CheckBoxList1.Items)
{
li.Selected = true;
}
}
protected void buttonDeselectAll_Click(object sender, EventArgs e)
{
foreach (ListItem li in CheckBoxList1.Items)
{
li.Selected = false;
}
}
No comments:
Post a Comment