Exemplo n.º 1
0
 private void SelectDelete_Click(object sender, EventArgs e)
 {
     if (base.CheckCookie())
     {
         if (Request["tid"] != "")
         {
             TopicAdmins.DeleteTopicsWithoutChangingCredits(Request["tid"], false);
             base.RegisterStartupScript("", "<script>window.location='forum_auditnewtopic.aspx';</script>");
             return;
         }
         base.RegisterStartupScript("", "<script>alert('您未选中任何选项');window.location='forum_auditnewtopic.aspx';</script>");
     }
 }
Exemplo n.º 2
0
        private void SelectDelete_Click(object sender, EventArgs e)
        {
            #region 对选中的主题进行删除

            if (this.CheckCookie())
            {
                if (DNTRequest.GetString("tid") != "")
                {
                    //TopicAdmins.DeleteTopics(DNTRequest.GetString("tid"), 0, false);
                    TopicAdmins.DeleteTopicsWithoutChangingCredits(DNTRequest.GetString("tid"), false);
                    base.RegisterStartupScript("", "<script>window.location='forum_auditnewtopic.aspx';</script>");
                }
                else
                {
                    base.RegisterStartupScript("", "<script>alert('您未选中任何选项');window.location='forum_auditnewtopic.aspx';</script>");
                }
            }

            #endregion
        }