protected void btn_Delete_Click(object sender, EventArgs e) { AC_AccountTitleBLL _bll = new AC_AccountTitleBLL(int.Parse(lbl_ID.Text)); if (_bll.Delete() < 0) { lbl_AlertInfo.Text = "该会计科目包含下级会计科目,请勿删除"; return; } lbl_AlertInfo.Text = ""; Response.Redirect("AccountTitle.aspx?SuperID=" + _bll.Model.SuperID.ToString()); }