Hi all
i have checkboxlist populated from a table in database.now how can i store only checked items to database.

Below 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
            }

         }

Thank u Ramesh for giving me idea how to start..

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.