Counting selected items on CheckBoxList

  • Thread starter Thread starter rbscheer
  • Start date Start date
R

rbscheer

Hi.

Is there any way to count how many items are selected on a CheckBoxList
control without iterating throug the items? I have a For...Next loop
that only needs to be taken into action if the CheckBoxList control has
at least one selected item.

Thanks,
Robert Scheer
 
Hi.

Is there any way to count how many items are selected on a CheckBoxList
control without iterating throug the items? I have a For...Next loop
that only needs to be taken into action if the CheckBoxList control has
at least one selected item.

Thanks,
Robert Scheer

If you only need to know that "at least one" item has been selected,
can you not just check that SelectedIndex > -1?
 
Back
Top