T
tjonsek
I am wanting to iterate through a checkboxlist and for those the user
has selected, perform certain actions. So far, I'm not successful. I
always catch the first selected value, but anything after that is not
regarded. Here is a snippet of the code:
Dim I As Integer
For I = 0 To CheckBoxList1.Items.Count - 1
If CheckBoxList1.Items(I).Selected Then
Select Case CheckBoxList1.Items(I).Text
'**********I check each case for the selected value and do
something if selected**********
End Select
End If
Next
I have also tried evaluating the following in my select case statement,
in place of 'CheckBoxList1.Items(I).Text' :
CheckBoxList1.Items(I).Selected.ToString
CheckboxList1.SelectedValue
Thanks for any help.
TJ
has selected, perform certain actions. So far, I'm not successful. I
always catch the first selected value, but anything after that is not
regarded. Here is a snippet of the code:
Dim I As Integer
For I = 0 To CheckBoxList1.Items.Count - 1
If CheckBoxList1.Items(I).Selected Then
Select Case CheckBoxList1.Items(I).Text
'**********I check each case for the selected value and do
something if selected**********
End Select
End If
Next
I have also tried evaluating the following in my select case statement,
in place of 'CheckBoxList1.Items(I).Text' :
CheckBoxList1.Items(I).Selected.ToString
CheckboxList1.SelectedValue
Thanks for any help.
TJ