I have two listbox lst1 and lst2, lst1 have 'SelectionMode =Multiple' ,Please tell me how to add multiple item in lst2 when we select multiple item in lst1.
For example
In lst1 if we select two states UP and AP then we want all cities of AP and UP added in lst2 .
Thanks in advance
Loading
Raja KrishnamurthyPosted Mar 11, 2011, 7:20 AM
foreach (ListItem listitem in lst1.Items)
{
if (listitem.Selected)
//get all the selected items here
//pass it on to DB to get the cities based on states selected (listitem.value)
//populate the lst2
}
HTH.
Happy Programming!!!
Regards,
Raja
Suthish NairPosted Mar 12, 2011, 1:57 PM
vijay kumar singhPosted Mar 11, 2011, 7:30 AM
Krishna GaradPosted Mar 11, 2011, 7:14 AM
http://www.c-sharpcorner.com/UploadFile/suthish_nair/2905/