protected void btn_Delete_Click(object sender, EventArgs e) { if (ViewState["ID"] != null) { AC_AccountMonthBLL _accountmonthbll= new AC_AccountMonthBLL(int.Parse(ViewState["ID"].ToString())); if (_accountmonthbll.Delete() < 0) { lbl_AlertInfo.Text = "删除会计月失败"; return; } } else { lbl_AlertInfo.Text ="请选择要删除的会计月"; return; } Response.Redirect("AccountMonth.aspx"); }
protected void btn_Delete_Click(object sender, EventArgs e) { if (ViewState["ID"] != null) { AC_AccountMonthBLL _accountmonthbll = new AC_AccountMonthBLL(int.Parse(ViewState["ID"].ToString())); if (_accountmonthbll.Delete() < 0) { lbl_AlertInfo.Text = "删除会计月失败"; return; } } else { lbl_AlertInfo.Text = "请选择要删除的会计月"; return; } Response.Redirect("AccountMonth.aspx"); }