Hi all
i have checkboxlist populated from a table in database.now how can i store only checked items to database.
fawadkhalil
0
Junior Poster in Training
Recommended Answers
Jump to PostBelow is the C# code to get the selected items from a CheckBoxList
for (int i=0; i<checkboxlist1.Items.Count; i++) { if (checkboxlist1.Items[i].Selected) { //Write your code to store checked items into database } }
All 2 Replies
Reply to this topic
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.