protected void Ckname_CheckedChanged(object sender, EventArgs e) { int Sgrade = Int32.Parse(DDLgrade.SelectedValue.ToString()); int Sclass = Int32.Parse(DDLclass.SelectedValue.ToString()); LearnSite.BLL.Room rbll = new LearnSite.BLL.Room(); rbll.SetRnameedit(Sgrade, Sclass, Ckname.Checked); }