How to get multiple selected items from a listbox in C#
Posted: Sun Apr 18, 2010 11:43 pm
You can use following code to do this.
Code: Select all
foreach (ListItem Item in ListBox.Items) {
if (Item.Selected == true) {
// You can use Item.Text to get the selected text of each item
}
}