protected void RepCommentsBind()
        {
            int       projectid = DataConverter.CLng(Request.QueryString["ProjectID"]);
            DataTable dt        = new DataTable();

            //dt = bpc.GetByProjectID(projectid);
            RpComments.DataSource = dt;
            RpComments.DataBind();
        }
        protected void CommentsBind(DataTable dt)
        {
            PagedDataSource pds = new PagedDataSource();

            pds.DataSource        = dt.DefaultView;
            pds.PageSize          = 10;
            pds.AllowPaging       = true;
            RpComments.DataSource = pds;
            RpComments.DataBind();
            if (RpComments != null && RpComments.Items.Count > 0)
            {
                foreach (RepeaterItem item in RpComments.Items)
                {
                    Label lblRating = item.FindControl("lblRating") as Label; //评分
                    Label lblUser   = item.FindControl("lblUser") as Label;   //作者
                    Label comID     = item.FindControl("Label1") as Label;    //评论ID

                    int cID = DataConverter.CLng(comID.Text);
                    //M_ProjectsComments mpc = bpc.GetSelect(cID);
                    //if (mpc != null && mpc.CommentsID > 0)
                    //{
                    //    if (mpc.Rating <= 0)
                    //    {
                    //        lblRating.Text = "未评分";
                    //    }
                    //    else
                    //    {
                    //        lblRating.Text = mpc.Rating.ToString();
                    //    }
                    //    M_UserInfo mu = new M_UserInfo();
                    //    B_User bu = new B_User();
                    //    mu = bu.GetUserByUserID(mpc.UserID);
                    //    if (mu != null && mu.UserID > 0)
                    //    {
                    //        lblUser.Text = mu.UserName;
                    //    }
                    //}
                }
            }
        }