protected void ButtonClear_Click(object sender, EventArgs e) { int oldyear = Int32.Parse(DDLyear.SelectedValue); LearnSite.BLL.Works wbll = new LearnSite.BLL.Works(); int wct = wbll.DeleteOldyear(oldyear);//清理作品记录 LearnSite.BLL.Signin sbll = new LearnSite.BLL.Signin(); int sct = sbll.DeleteOldyear(oldyear);//清理签到记录 LearnSite.BLL.Result rbll = new LearnSite.BLL.Result(); int rct = rbll.DeleteOldyear(oldyear);//清理测验记录 Labelmsg.Text = "执行结果:清理作品记录" + wct.ToString() + "条、清理签到记录" + sct.ToString() + "条、清理测验记录" + rct.ToString() + "条"; }