Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

.Net Web Page Listbox set Selected Items from Database

On a Web Page (mypage.aspx.vb) I have a SQL DataReader that pulls in a comma seperated string
dr("OriginID") from the SQL Database

On the web form I have a list box that is pre-populated with 5 - 500 items

What is the best way to loop through the comma separated string and listbox
And "Selected = True" the listbox items that are a match on Value
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Brister

ASKER

Thanks