jiahui84
12-16-2005, 10:16 AM
Hi, do anyone know how to write the code for checking all the checkbox at a time.
|
Click to See Complete Forum and Search --> : Check all checkbox jiahui84 12-16-2005, 10:16 AM Hi, do anyone know how to write the code for checking all the checkbox at a time. sirpelidor 12-16-2005, 01:20 PM 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[i].Selected == true) //box is checked, do something }//end for webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |