How to set multiple selections in ASP.NET ListBox?
asp.net, listbox
Solution
this is the VB code to do so...
myListBox.SelectionMode = Multiple
For each i as listBoxItem in myListBox.Items
if i.Value = WantedValue Then
i.Selected = true
end if
Next
Problem
I can't find a way to select multiple items in an ASP.NET ListBox in the code behind? Is this something needs to be done in Javascript?