protected void BtnSubmit_Click(object sender, EventArgs e) { CommentInfo commentInfo = new CommentInfo(); commentInfo.CommentId = BasePage.RequestInt32("CommentID"); commentInfo.Reply = this.TxtCommentRestore.Text; if (!string.IsNullOrEmpty(PEContext.Current.Admin.AdminName)) { commentInfo.ReplyAdmin = PEContext.Current.Admin.AdminName; } else { commentInfo.ReplyAdmin = "匿名发表"; } commentInfo.ReplyDateTime = DateTime.Now; if (this.ChkReplyIsPrivate.Checked) { commentInfo.ReplyIsPrivate = true; } else { commentInfo.ReplyIsPrivate = false; } if (Comment.AdministratorReply(commentInfo)) { AdminPage.WriteSuccessMsg("<li>回复指定评论成功。</li>", "CommentManage.aspx?NodeId=" + BasePage.RequestInt32("NodeId").ToString() + "&GeneralId=" + BasePage.RequestInt32("GeneralId").ToString()); } else { AdminPage.WriteErrMsg("<li>回复指定失败,请返回。</li>"); } }