Urgent!!!!! Remove Items from a <Asp:Listbox> thru javascript

Discussion in 'ASP .Net' started by =?Utf-8?B?U2lsZWVzaA==?=, Nov 4, 2004.

  1. HI

    Does any one know hot to remove selected items from a Listbox.

    Any sample code?

    Thx
    Sileesh
    =?Utf-8?B?U2lsZWVzaA==?=, Nov 4, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?U2lsZWVzaA==?=

    Curt_C [MVP] Guest

    You should be able to get the selected index in the postback and either
    ..Delete (or is it .Remove) or iterate through the contents clearing them all
    then readding only the unslected ones.

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    Site: http://www.Darkfalz.com
    Blog: http://blog.Darkfalz.com


    "Sileesh" <> wrote in message
    news:...
    > HI
    >
    > Does any one know hot to remove selected items from a Listbox.
    >
    > Any sample code?
    >
    > Thx
    > Sileesh
    Curt_C [MVP], Nov 4, 2004
    #2
    1. Advertising

  3. =?Utf-8?B?U2lsZWVzaA==?=

    Curt_C [MVP] Guest

    Nevermind....from your other post you aren't doing this with a postback or
    ANY server code....
    See my reply to your other post

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    Site: http://www.Darkfalz.com
    Blog: http://blog.Darkfalz.com


    "Sileesh" <> wrote in message
    news:...
    > HI
    >
    > Does any one know hot to remove selected items from a Listbox.
    >
    > Any sample code?
    >
    > Thx
    > Sileesh
    Curt_C [MVP], Nov 4, 2004
    #3
    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?U2lsZWVzaA==?=

    Urgent!!!!!!!! Adding Items to <Asp:ListItem> thru Javascript

    =?Utf-8?B?U2lsZWVzaA==?=, Nov 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,080
    Curt_C [MVP]
    Nov 4, 2004
  2. Ron
    Replies:
    4
    Views:
    30,006
    Lowell Heddings
    Dec 10, 2004
  3. THTB
    Replies:
    0
    Views:
    174
  4. mc
    Replies:
    0
    Views:
    221
  5. Suresh
    Replies:
    1
    Views:
    131
    Richard Cornford
    Apr 16, 2004
Loading...

Share This Page