示例#1
0
        private void addComment()
        {
            CommentInfo info = new CommentInfo();

            info.topic_id    = topic_id;
            info.description = txtDescription.Text;
            info.create_by   = (SessionApp.user_info == null) ? "No Login" : SessionApp.user_info.user_name;

            var result = WebboardController.addComment(info);

            if (result == null)
            {
                ShowMessage(Page, "เพิ่มไม่สำเร็จ");
            }
            else
            {
                ShowMessage(Page, "เพิ่มความเห็นสำเร็จ");
                bindComments();
            }
        }