Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a column in database which saves a string with commas and i need to separate them and display in radiobuttonlist. Please help meeee
Posted
Updated 29-Dec-13 15:11pm
v2

1 solution

First of all, 'string with commas' should not have been stored in the same column, that is a big mistake, that is a violation of "first normal form" rule in relational database design. There is a good article on this 11 important database designing rules which I follow[^]. You can ask google for more information on relational database design and related matters.

To answer your question: after retrieving the 'string with commas' from your database:
To separate the string,, adapt this Split[^]
To display items in radiobuttonlist, check this out RadioButtonList[^]
 
Share this answer
 
v5
Comments
Member 10438040 29-Dec-13 21:58pm    
Got it! Thank you!
Peter Leow 29-Dec-13 22:15pm    
You are welcome. Happy coding and Happy New Year to you.
Sergey Alexandrovich Kryukov 29-Dec-13 23:03pm    
5ed. OP got it... :-)
—SA
Peter Leow 30-Dec-13 0:06am    
Thank you for your guidance. Happy New Year to you.
Sergey Alexandrovich Kryukov 30-Dec-13 0:40am    
Thank you; best New Year wished to you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900