T
tom c
In ASP.Net 1.1, the selected property of the list box is not working
for me. In the code below, I loop through all the items in a listbox.
I can see the text and value from the list box just as I extected, but
Item.selected is never true, even though I have selected muliple items.
Any idea what I might be missing?
Dim Item As ListItem
For Each Item In listA.Items
x = Item.Text
y = Item.Value
z = Item.Selected
If Item.Selected = True Then
x = Item.Text
y = Item.Value
End If
Next
for me. In the code below, I loop through all the items in a listbox.
I can see the text and value from the list box just as I extected, but
Item.selected is never true, even though I have selected muliple items.
Any idea what I might be missing?
Dim Item As ListItem
For Each Item In listA.Items
x = Item.Text
y = Item.Value
z = Item.Selected
If Item.Selected = True Then
x = Item.Text
y = Item.Value
End If
Next