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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top