//创建链接;
SqlConnection con = DB.createConnection(); //不再用 new
con.Open();
SqlCommand cmd = new SqlCommand(sql,con);
SqlDataReader sdr = cmd.ExecuteReader();
this.CheckBoxList1.DataTextField = "";
this.CheckBoxList1.DataValueField = "";
this.CheckBoxList1.DataSource = sdr;
this.CheckBoxList1.DataBind();
sdr.Close(); //关闭记录集
con.Close(); //关闭链接