Author: sondos_11 | Posted on: 11/29/2010 1:27:38 PM | Views : 435

Hi,
I am using asp.net c# 3.5
what I am trying to do is: insert multiple selected items from CheckBoxList into DB
I tried using (foreach) as:

foreach (ListItem item in bookingid.Items)
        {
            if (item.Selected == true)
            {
                using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ConnectionString))
                {
                    con.Open();
                   ...

Go to the complete details ...