/// <summary> /// �����ظ� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void BtnReply_Click(object sender, EventArgs e) { int postID = int.Parse(Request.QueryString["id"]); LabMS.BLL.PostReply postReply = new LabMS.BLL.PostReply(); LabMS.Model.PostReply postReplyInfo = new LabMS.Model.PostReply(); postReplyInfo.ReplierID = 1; // TBD postReplyInfo.PosterID = postID; postReplyInfo.PostReplyContent = Server.HtmlEncode(ReplyNew.Text); postReplyInfo.PostReplyTime = DateTime.Now; postReply.Add(postReplyInfo); // �ظ� BindReply(); ReplyNew.Text = ""; }
/// <summary> /// 新增回复 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void BtnReply_Click(object sender, EventArgs e) { int postID = int.Parse(Request.QueryString["postID"]); LabMS.BLL.PostReply postReply = new LabMS.BLL.PostReply(); LabMS.Model.PostReply postReplyInfo = new LabMS.Model.PostReply(); postReplyInfo.ReplierID = int.Parse(Session["UserID"].ToString()); postReplyInfo.ReplierType = Base.PrivilegeManager.GetUserTypeCode(); postReplyInfo.PosterID = postID; postReplyInfo.PostReplyContent = Server.HtmlEncode(ReplyNew.Text); postReplyInfo.PostReplyTime = DateTime.Now; postReply.Add(postReplyInfo); // 绑定回复 GetPost(); GetReplies(); ReplyNew.Text = ""; }