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 KrishnamurthyRank #3,615 · 403 reputationPosted Mar 11, 2011, 2:20 AM EST
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
Krishna GaradRank #191 · 12.8K reputationPosted Mar 11, 2011, 2:14 AM EST
http://www.c-sharpcorner.com/UploadFile/suthish_nair/2905/
vijay kumar singh27 reputationPosted Mar 11, 2011, 2:30 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Mar 12, 2011, 8:57 AM EST