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. Advertisements

  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. Advertisements

  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. Advertisements

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. kent
    Replies:
    1
    Views:
    1,037
    Andrew de la Harpe
    May 3, 2004
  2. =?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,155
    Curt_C [MVP]
    Nov 4, 2004
  3. Ron
    Replies:
    4
    Views:
    30,396
    Lowell Heddings
    Dec 10, 2004
  4. K B
    Replies:
    2
    Views:
    831
  5. divya
    Replies:
    1
    Views:
    1,261
    Munna
    May 28, 2008
  6. Tomas
    Replies:
    1
    Views:
    744
    Munna
    Aug 12, 2008
  7. mc
    Replies:
    0
    Views:
    393
  8. Suresh
    Replies:
    1
    Views:
    217
    Richard Cornford
    Apr 16, 2004
Loading...