예제 #1
0
        void loadComment()
        {
            p_dtAnnouncementComment = csql.getAnnouncementsComments("SmartConcepcion", p_PageSize, p_PageIndex, p_AnnouncementID.Value);
            loadGridView(gvCommentSection, p_dtAnnouncementComment);
            txtComment.Text = null;


            if (p_dtAnnouncementComment.Rows.Count > 0)
            {
                txtCommentCount.Text = p_dtAnnouncementComment.Rows[0]["commentcount"].ToString();
                btnLoad.Visible      = true;
                upCommentSection.Update();
            }
            else
            {
                btnLoad.Visible = false;
                upCommentSection.Update();
            }


            upCommentSection.Update();
        }