Multiple Select Listbox - Help

  • Thread starter Thread starter Marisa
  • Start date Start date
M

Marisa

Hi. I am new to C#, and I am having trouble getting the multiple
selection of listbox to work. I have an asp.net web form, and I need
two listboxes which are filled with an access table. I have to be
able to select multiple items, and fill a datagrid with the results.
I can fill 2 listboxes and a datagrid, but not with multiple
selections. So far, I have no code behind, I have completed it with
just using the characteristics of the controls and manipulating the
query statements.

Does someone have a generic code-behind for this that I can relate to
my situation? I realize I have to iterate through the selections, but
I don't understand how. If you would like to see my page, just ask
and I will post it.

Any help would be greatly appreciated.

Thank you.
 
Marisa,

Is the SelectionMode property of the ListBox set to
ListSelectionMode.Multiple?
 
Back
Top