troubleshooting Question

Return multiple selections in a listbox 2.0

Avatar of andrewh123
andrewh123 asked on
6 Comments1 Solution4022 ViewsLast Modified:
Probably a very simple solution but it is driving me mad.
In 2.0, I have a list box which allows the user to select mulitple selections.  These are stored in a database as comma separated values.

When I come to display the result again later, how do I get the multiple selections to be selected?

I extract the data from the database and pop it into an array then loop through that:
    lstBox.SelectedValue = x

But this only puts the last selection of the loop in.

Thanks in anticipation

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros