i want to select multiple items in list1 and that selected items to be transfer in list 2 and store in sql table.
Transfer multiple items from one list to another list.
i want to select multiple items in list1 and that selected items to be transfer in list 2 and store in sql table.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 15, 2013, 11:30 PM EDT
if (ListBox1.Items.Count > 0)
{
for (int i = 0; i < ListBox1.Items.Count; i++)
{
if (ListBox1.Items[i].Selected)
{
string selectedItem = ListBox1.Items[i].Text;
//insert command
ListBox2.Items.Add(selectedItem);
}
}
}
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 16, 2013, 12:38 AM EDT