private void AddAnnounceInfo_Click(object sender, EventArgs e) { #region 添加公告 if (this.CheckCookie()) { Announcements.CreateAnnouncement(username, userid, title.Text, Utils.StrToInt(displayorder.Text, 0), starttime.Text, endtime.Text, DNTRequest.GetString("announcemessage_hidden")); Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/AnnouncementList"); Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/SimplifiedAnnouncementList"); AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "添加公告", "添加公告,标题为:" + title.Text); base.RegisterStartupScript("PAGE", "window.location.href='global_announcegrid.aspx';"); } #endregion }