We help IT Professionals succeed at work.

C#.net split string and then check appropriate checkboxlist

dkilby
dkilby asked
on
160 Views
Last Modified: 2017-03-09
I have a checkboxlist with 5 options, when saved it is in one database column, with each option seperated by a semi-colon, when the user goes back into the page to edit how do i take the value as a string and make sure it checks the right checkboxes in the list.

Thanks
Comment
Watch Question

CERTIFIED EXPERT

Commented:
do you want to do it in Window Form or ASP.NET application? do you have some sample codes to share here?
IT Professional
CERTIFIED EXPERT
Top Expert 2015
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2016

Commented:
why not using 5 columns? you always will have troubles with this field and it violates 1NF (first normal form) without any benefit.

Sara

Author

Commented:
thanks for the help