I have two listboxes and a button on my web form. Select from the 2rd list box to add the selected item to 1st listbox. and hit button to add the items in the 1st listbox to the database.

the 1st list box is bound to a dataset, and its DataValueFiled is set to table's ID column. How can I get the item IDs, which are in the 1st listbox?

I used lst.DataValueField, it returned the column name, not its value.

Then I tried lst.items(i).value, did the same thing.