Hi, do anyone know how to write the code for checking all the checkbox at a time.suppose you have a check box list control named: cbl
to loop through all check boxes:
for (int i = 0; i < cbl.Items.Count; i++){
if (cbl.Items.Selected == true)
//box is checked, do something
}//end for
to loop through all check boxes:
for (int i = 0; i < cbl.Items.Count; i++){
if (cbl.Items.Selected == true)
//box is checked, do something
}//end for