ListBox (WebControls)

Discussion in 'ASP .Net Web Controls' started by mg, Feb 9, 2004.

  1. mg

    mg Guest

    How can I remove (using C#) the items previously added to a System.Web.UI.WebControls.ListBox?
    mg, Feb 9, 2004
    #1
    1. Advertising

  2. mg

    CMA Guest

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

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

    hope this helps,
    CMA


    "mg" <> wrote in message
    news:...
    > How can I remove (using C#) the items previously added to a

    System.Web.UI.WebControls.ListBox?
    CMA, Feb 10, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bWc=?=

    ListBox (WebControls)

    =?Utf-8?B?bWc=?=, Feb 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,294
    dm_dal
    Feb 9, 2004
  2. Richard
    Replies:
    6
    Views:
    651
    Richard
    Jun 13, 2004
  3. Replies:
    0
    Views:
    353
  4. kk

    WebControls.Listbox

    kk, Aug 25, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    104
    Andrea Williams
    Aug 25, 2004
  5. Jason Wood
    Replies:
    1
    Views:
    183
    Bob Barrows [MVP]
    May 25, 2005
Loading...

Share This Page