How to save the checked items on checkedlistbox in sql database? I searched through the web and found out that for loop or foreach is necessary. Could someone give me a sample code and an explanation. I really need to do this, but can't find a good tutorial for this.
xxxtian
0
Light Poster
Recommended Answers
Jump to PostThere are three ways to go about this:
- SQL provider
- LINQ to SQL
- LINQ to EF
LINQ to SQL is probably the easiest to use, so let's try that one :)
First we need a table on a database. We'll pretend we have one and it's …
Jump to PostDo you have to save only names of th checkBoxes? or What exactly? And where? Do you need a new ID (primary key) for each checklistBox? How does your storedProcedure look like (it only accepty one value at a time, or..)?
If its in any help:
All 7 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
xxxtian
0
Light Poster
Mitja Bonca
557
Nearly a Posting Maven
xxxtian
0
Light Poster
Mitja Bonca
557
Nearly a Posting Maven
xxxtian
0
Light Poster
xxxtian
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.