protected void Btnuse_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request.Form["chkSel"])) { b_search.UpdateStatusByIDS(Request.Form["chkSel"], 1); } else { function.WriteErrMsg("启用失败,请重新选择!"); } Response.Redirect("UserFunc.aspx?EliteLevel=" + EliteLevel); }
//批量停用 protected void Btnstop_Click(object sender, EventArgs e) { b_search = new B_Search(); if (!string.IsNullOrEmpty(Request.Form["chkSel"])) { b_search.UpdateStatusByIDS(Request.Form["chkSel"], 2); } else { function.WriteErrMsg("停用失败,请重新选择!"); } Response.Redirect("SearchFunc.aspx"); }