[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Marcia

2/9/2004 8:21:00 PM

How can I remove (using C#) the items previously added to a System.Web.UI.WebControls.ListBox?
1 Answer

CMA

2/10/2004 6:38:00 AM

0

to remove all....
listbox1.Items.Clear();

if only selected items...
listbox.Items.Remove(Item1);

hope this helps,
CMA


"mg" <mg@theworld.com> wrote in message
news:4FAE8ECE-E506-4919-B9B0-B4F743A12966@microsoft.com...
> How can I remove (using C#) the items previously added to a
System.Web.UI.WebControls.ListBox?