protected void btnSubmitComment_Click(object sender, EventArgs e) { if (VL.Current.User != null) { VL.ORM.Comment newComment = new VL.ORM.Comment(); newComment.PostedUser = VL.Current.User.UserID; newComment.LinkID = _thisLink.LinkID; newComment.TextX = txtNewComment.Text; newComment.DatePosted = DateTime.Now; newComment.Save(); //Clear the comment box and ready for the new comment txtNewComment.Text = ""; //Regenerate the comment list generateCommentList(); } }
public override void initControl(params object[] inObj) { _thisComment = (VL.ORM.Comment)inObj[0]; }