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

G

Guest

HI

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

Any sample code?

Thx
Sileesh
 
C

Curt_C [MVP]

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

Curt_C [MVP]

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top