/// <summary> /// 评论数量 /// </summary> protected int Comment_Count(int _kindId, int _parentId) { DtCms.BLL.AllReviews bll = new DtCms.BLL.AllReviews(); int _num = bll.GetCount("KindId=" + _kindId + " and ParentId=" + _parentId); return(_num); }
private void RptBind(string strWhere, string orderby) { if (!int.TryParse(Request.Params["page"] as string, out this.page)) { this.page = 0; } DtCms.BLL.AllReviews bll = new DtCms.BLL.AllReviews(); //获得总条数 this.pcount = bll.GetCount(strWhere); if (this.pcount > 0) { this.lbtnDel.Enabled = true; this.lbtnAudit.Enabled = true; } else { this.lbtnDel.Enabled = false; this.lbtnAudit.Enabled = false; } if (this.kindId >= 0) { this.ddlKindId.SelectedValue = this.kindId.ToString(); } this.txtKeywords.Text = this.keywords; this.ddlProperty.SelectedValue = this.property; this.rptList.DataSource = bll.GetPageList(this.pagesize, this.page, strWhere, orderby); this.rptList.DataBind(); }