Checkboxlist any use?

T

Tascien

Wondering...

if you have a checkboxlist control... how do you get values of the
selected checkboxes in the list once the user submits?

T.
 
J

Jos

Tascien said:
Wondering...

if you have a checkboxlist control... how do you get values of the
selected checkboxes in the list once the user submits?

T.

Loop through all the items.

For VB:

Dim li As ListItem
For Each li In MyCheckBoxList.Items
If(li.Selected) Then
ValueOfThisSelection=li.Value
End If
Next li
 

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

Members online

No members online now.

Forum statistics

Threads
474,221
Messages
2,571,133
Members
47,747
Latest member
swapote

Latest Threads

Top