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.
Riyaz AkhtarPosted Jul 16, 2013, 4:38 AM
Sanjeeb LenkaPosted Jul 16, 2013, 3:30 AM
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);
}
}
}