private void GetNewsCommentById(int cId)
    {
        NewsApprovedCommentBSO newsApprovedCommentBSO = new NewsApprovedCommentBSO();

        DataTable table = newsApprovedCommentBSO.GetNewsApprovedCommentByNewsID(cId);


        lblComment.Text = table.Rows.Count.ToString();

        DataListProductComment.DataSource = table;
        DataListProductComment.DataBind();
    }
Exemplo n.º 2
0
    private void GetNewsCommentById(int cId)
    {
        NewsCommentBSO newsCommentBSO = new NewsCommentBSO();

        DataTable table = newsCommentBSO.GetNewsCommentByNewsID(cId);

        if (table.Rows.Count > 0)
        {
            lblComment.Text = table.Rows.Count.ToString() + " " + Resources.resource.T_Comment2;
        }
        else
        {
            lblComment.Text = "";
        }


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