/// <summary> /// 执行操作的方法 /// </summary> private void Action() { string cmd = Request["cmd"]; if (String.IsNullOrEmpty(cmd)) { return; } string ids = Request.QueryString["ids"]; if (cmd == "enab") { bll_onePage.UpdateStatus(ids, "enab"); } else if (cmd == "del") { bll_onePage.Delete(ids); } Response.Redirect(Request.Url.AbsolutePath + WebUtility.GetUrlParams("?", true)); }