private void DeleteADInfo_Click(object sender, EventArgs e) { #region 除广告信息 if (this.CheckCookie()) { Advertisements.DeleteAdvertisementList(DNTRequest.GetString("advid")); base.RegisterStartupScript("PAGE", "window.location.href='global_advsgrid.aspx';"); } #endregion }
private void DelAds_Click(object sender, EventArgs e) { #region 除指定的广告 if (this.CheckCookie()) { if (DNTRequest.GetString("advid") != "") { Advertisements.DeleteAdvertisementList(DNTRequest.GetString("advid")); DNTCache.GetCacheService().RemoveObject("/Forum/Advertisements"); base.RegisterStartupScript("PAGE", "window.location.href='global_advsgrid.aspx';"); } else { base.RegisterStartupScript("", "<script>alert('您未选中任何选项');window.location.href='global_advsgrid.aspx';</script>"); } } #endregion }