PDA

Click to See Complete Forum and Search --> : How to know which items are selected in a multi-select ListBox


anis_b
Mar 26th, 2004, 01:08 AM
I may have asked a simple question..
but i m just not able to figure it out.

Generally we provide the users with two listbox where the first one is a list of available and the other selected ones.

I found a solution in JavaScript but i would like to have it thru ASP.Net Server Side coding only.

pls suggest

Split
Mar 26th, 2004, 03:52 PM
Basically, you go "for each" loop through list items and each item should have property Selected

Memnoch1207
Mar 26th, 2004, 03:55 PM
kind of like this

Dim item As ListItem

For each item in ListBox1.Items
If(item.Selected) Then
'do something with the selected item
End If
Next