C#
protected void Button1_Click(object sender, EventArgs e)
    {
        {
            string msg = "";

            if (CheckBoxList1.Checked == true)
            {
                msg = "trading account";
            }

            if (CheckBoxList1.Checked == true)
            {
                msg = msg + " insurance";
            }

            if (CheckBoxList1.Checked == true)
            {
                msg = msg + " adhar card";
            }
            if (CheckBoxList1.Checked == true)
            {
                msg = msg + "  2&4 wheeler insurance";
            }



            if (msg.Length > 0)
            {
                MessageBox.Show(msg + " selected ");
            }
            else
            {
                MessageBox.Show("No checkbox selected");
            }

            CheckBoxList1.ThreeState = true;
        }
    }
}
in the above code i am getting the name checked does not exist in the present content