Exemplo n.º 1
0
        private void GetNewsCommentById(int cId)
        {
            NewsCommentBSO newsCommentBSO = new NewsCommentBSO();

            DataTable table = newsCommentBSO.GetNewsCommentByNewsID(cId);

            DataView view = new DataView(table);
            view.RowFilter = "Actived = 1";
            table = view.ToTable();

            if (table.Rows.Count > 0)
                lblComment.Text = "<div class='gt_title'> <div class='title_article_top_comment'>Ý kiến nhận xét (" + table.Rows.Count.ToString() + " ý kiến)</div></div>";
            else
                lblComment.Text = "";

            DataListProductComment.DataSource = table;
            DataListProductComment.DataBind();
        }