public void InsertData()
{
foreach (ListItem item in CheckBoxList.Items)
{
if (item.Checked)
{
con.Open();
String str = "Insert into imtiaz values('" + CheckBoxList1.SelectedValue + "')";
SqlCommand cmd = new SqlCommand(str, con);
int i = cmd.ExecuteNonQuery();
con.Close();
}