protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { BasePage.RequestInt32("ListType"); BasePage.RequestString("Keyword"); string str = BasePage.RequestString("Action"); if (str != null) { if (!(str == "Delete")) { if (!(str == "disWordFilter")) { if (str == "runWordFilter") { WordReplace.Enabled(BasePage.RequestString("ItemID")); } return; } } else { if (WordReplace.Delete(BasePage.RequestString("ItemID"))) { AdminPage.WriteSuccessMsg("<li>删除指定的记录成功!</li>", "WordFilterManage.aspx"); } return; } WordReplace.Disabled(BasePage.RequestString("ItemID")); } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { string str = BasePage.RequestString("listType"); string str2 = BasePage.RequestString("Action"); if (str2 != null) { if (!(str2 == "Delete")) { if (str2 == "disInsideLink") { WordReplace.Disabled(BasePage.RequestString("ItemID")); } else if (str2 == "runInsideLink") { WordReplace.Enabled(BasePage.RequestString("ItemID")); } } else if (WordReplace.Delete(BasePage.RequestString("ItemID"))) { AdminPage.WriteSuccessMsg("<li>删除指定的记录成功!</li>", "InsideLinkManage.aspx"); } } if (!string.IsNullOrEmpty(str)) { this.HdnlistType.Value = str; } } }
protected void EBtnBatchDelete_Click(object sender, EventArgs e) { if (WordReplace.Delete(this.EgvInsideLink.SelectList.ToString())) { AdminPage.WriteSuccessMsg("<li>删除记录成功!</li>", "InsideLinkManage.aspx"); } else { AdminPage.WriteErrMsg("<li>删除失败!</li>"); } }
protected void EBtnBatchDelete_Click(object sender, EventArgs e) { StringBuilder builder = new StringBuilder(""); if (WordReplace.Delete(this.EgvWordFilter.SelectList.ToString())) { AdminPage.WriteSuccessMsg("<li>删除指定的记录成功!</li>", "WordFilterManage.aspx"); } else { AdminPage.WriteErrMsg("<li>删除失败!</li>"); } }