i want to add selected item from a data bounded listbox (listbox1) to another listbox (listbox2)
Here is the code on a click event of a button.
private void btnrgt_Click(object sender, EventArgs e)
{
string x = listBox1.SelectedItem.ToString();
listBox2.Items.Add(x.ToString());
txttestno.Text = listBox2.Items.Count.ToString();
}
When i run this code System.data.datarowview get displayed in the listbox2.
Kindly help. thank you in advance.

Khargesh RajputRank #616 · 3.9K reputationPosted Feb 4, 2015, 10:11 PM EST
http://www.aspsnippets.com/Articles/How-to-move-ListBox-items-to-another-ListBox-in-ASPNet-using-jQuery.aspx
Ameya Bedarkar3 reputationPosted Feb 4, 2015, 10:16 PM EST
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 4, 2015, 11:41 PM EST