
October 2nd, 2001, 10:54 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Transfering data from one ListBox to another
Originally posted by : Murtaza (murtaza.hussain@cdac.ernet.in)Hi,I am populating ListBox1 dynamically on the page load event from the database using ArrayList. I want the user to select some data from ListBox1 and transfer it to ListBox2 on click of a button.When I am trying to do this following thing happens:1. If I write the populating list box control code in Page_Load event then on clicking the button it does not transfer. And if i use the page.ispostback option then on clicking the button all the data is lost.2. If I write the populating list box control code in Page_Init event then on clicking the button transfer takes place but each time the button is pressed it replaces the data in ListBox2 instead of appending it.Kindly help. Thanks.
|