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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top