PDA

View Full Version : Listbox selection


Mitsuki
05-08-2006, 09:13 AM
Hi I need help please

I have 2 listboxes and 2 tables

The first listbox will retreive the items from table 1
and if needed will move it to the second listbox when moved to the second listbox it should be inserted in table 2

I just want to understand the idea .. am running out of time please can someone spare sometime to help me ...??

I would really appreciate it ...


Thank you in advance

handshakeit
05-08-2006, 03:18 PM
suppose u want to add at select change event then simply use

protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
ListBox2.Items.Add(ListBox1.SelectedValue);
}