/// <summary> /// 删除房型 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btndelete1_Click(object sender, EventArgs e) { Model.room_type fm = new Model.room_type(); int id = Convert.ToInt32(txt_fxid.Value); if (fxBll.Delete(id)) { ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript' defer>alert('删除成功');</script>"); BindFX(); } }
/// <summary> /// 单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btndelone_Click(object sender, EventArgs e) { int id = Convert.ToInt32(txt_hidid.Value); if (fmtype.Delete(id)) { ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript' defer>alert('删除成功!');</script>"); } else { ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript' defer>alert('删除失败!');</script>"); } BindGV(); }