Exemple #1
0
 private void DeleteADInfo_Click(object sender, EventArgs e)
 {
     if (base.CheckCookie())
     {
         Advertisement.DeleteAll(Request["advid"]);
         base.RegisterStartupScript("PAGE", "window.location.href='advsgrid.aspx';");
     }
 }
Exemple #2
0
        private void DelAds_Click(object sender, EventArgs e)
        {
            if (base.CheckCookie())
            {
                String ads = Request["advid"];
                if (ads != "")
                {
                    //Advertisements.DeleteAdvertisementList(Request["advid"]);
                    Advertisement.DeleteAll(ads);

                    XCache.Remove(CacheKeys.FORUM_ADVERTISEMENTS);
                    base.RegisterStartupScript("PAGE", "window.location.href='advsgrid.aspx';");
                    return;
                }
                base.RegisterStartupScript("", "<script>alert('您未选中任何选项');window.location.href='advsgrid.aspx';</script>");
            }
        }