private void DelPosts_Click(object sender, EventArgs e) { #region 除用户帖 if (this.CheckCookie()) { int uid = DNTRequest.GetInt("uid", -1); if (!AllowEditUserInfo(uid, true)) { return; } //清除用户所发的帖子 Posts.ClearPosts(uid, 0); //foreach (DataRow dr in Posts.GetAllPostTableName().Rows) //{ // if (dr["id"].ToString() != "") // { // Posts.DeletePostByPosterid(int.Parse(dr["id"].ToString()), uid); // } //} //Topics.DeleteTopicByPosterid(uid); //Users.ClearPosts(uid); base.RegisterStartupScript("", "<script>alert('请到 论坛维护->论坛数据维护->重建指定主题区间帖数 对出现因为该操作产生\"读取信息失败\"的主题进行修复 ')</script>"); base.RegisterStartupScript("PAGE", "window.location.href='global_edituser.aspx?uid=" + uid + "&condition=" + DNTRequest.GetString("condition") + "';"); } #endregion }
private void DelPosts_Click(object sender, EventArgs e) { if (base.CheckCookie()) { int @int = DNTRequest.GetInt("uid", -1); if (!this.AllowEditUserInfo(@int, true)) { return; } Posts.ClearPosts(@int, 0); base.RegisterStartupScript("", "<script>alert('请到 论坛维护->论坛数据维护->重建指定主题区间帖数 对出现因为该操作产生\"读取信息失败\"的主题进行修复 ')</script>"); base.RegisterStartupScript("PAGE", "window.location.href='global_edituser.aspx?uid=" + @int + "&condition=" + Request["condition"] + "';"); } }