Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DropDownList Delete all

Reply
Thread Tools

DropDownList Delete all

 
 
news.microsoft.com
Guest
Posts: n/a
 
      10-28-2003
I can't believe there is not an easy way to just delete a list box so it can
be refilled in C#?

Mick


 
Reply With Quote
 
 
 
 
Wesam
Guest
Posts: n/a
 
      10-29-2003
DropDown1.Items.Clear();

This should work ...

We$am

"news.microsoft.com" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I can't believe there is not an easy way to just delete a list box so it

can
> be refilled in C#?
>
> Mick
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I set the DropDownList.SelectedIndex of ONE DropDownList they ALL change! S_K ASP .Net 5 11-14-2007 04:51 PM
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-23-2005 01:31 PM
databinding a Dropdownlist to another dropdownlist tshad ASP .Net 8 10-19-2005 10:00 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM



Advertisments