tcadieux
06-06-2008, 06:03 PM
I want to show to an administrator, multiple options that someone will have choosen from a dropdown. I'm having trouble displaying the DropDownlist to the user with multiple items picked, only the last Item appears Selected?
Do While objDataReader.Read = True
Dim ex As ListItemCollection = lbDist_list.Items
Dim ax As ListItem
For Each ax In ex
'Check against the current DataRecord
If ax.Value = Trim(objDataReader("distList_Id")) Then
lbDist_list.SelectedValue = ax.Value
End If
Next
Loop
Do While objDataReader.Read = True
Dim ex As ListItemCollection = lbDist_list.Items
Dim ax As ListItem
For Each ax In ex
'Check against the current DataRecord
If ax.Value = Trim(objDataReader("distList_Id")) Then
lbDist_list.SelectedValue = ax.Value
End If
Next
Loop