Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
how to add items to a listbox dynamically by getting values in a textbox..
Posted

1 solution

Have you tried Listbox.Items.Add ?
 
Share this answer
 
Comments
bessy christina 27-Dec-11 10:31am    
it ain't working..the values get replaced.. i want it to get appended.. :(
[no name] 27-Dec-11 22:01pm    
Remember that each time there is a postback the control is reset. If you want append then you need to persist the items in some manner so they can be added to the list box again
bessy christina 28-Dec-11 10:27am    
thank u :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900