Tested, seems to work for me... :). Let me know if you have trouble implementing it for yourself.
Main Topics
Browse All TopicsHi, I am trying to do what should be a simple thing with a list box with mutliple selected values and can not seem to get anywhere near what I want as the result.
Basically I have a mutli select list box with 10 categories which are "cat 1" through to "cat 10".
What I would like to do is check which items in the list box are selected and then have them added to a csv string. So, the output for selected items 1, 3 and 5 would be "cat1, Cat3, Cat5".
I have played with this for hours now and just do not seem to ba able to make progress.
Have checked and tried many of the posting already listed but none seem to work.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
> The next question is how does it work with a databound set of items?
please, stick to one question at the time. See here: http://www.experts-exchang
Unless it is related and you can't get the solution to work without it. But then I don't understand your question, I'm afraid. Where are you on? Can you show the code you have got so far? Is this ASP.NET or VB.NET forms?
No worries. Sometimes it is not as clear cut, but we are trying to keep it simple, as experts, so that we know that when we start answering to a question, that we also know it ends when the question is resolved. But sometimes (or just as often), the asker needs just a bit more guidance to get it working, or forgot to mention some details about his situation.
Tx for the points, and glad that this bit is sorted ;-). On to the next!
Business Accounts
Answer for Membership
by: abelPosted on 2009-04-24 at 09:27:15ID: 24226761
What about the following (not tested)
Select allOpen in new window