iterating through a CheckBoxList

by pietman 24. August 2009 18:35

foreach (ListItem b in CheckBoxLab.Items)
{
       if (b.Selected)
       .......

 also to clear all the select boxes (select none funtion):

foreach (ListItem l in ((ListItemCollection)CheckBoxLab.Items))
{
       l.Selected = false;
}

Tags:

c#

Add c0mment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About ...

pietman celliersPietman Celliers
Bitlink  Ltd
bitlinkit.com