private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); if (this.category_id > 0) { this.ddlCategoryId.SelectedValue = this.category_id.ToString(); } this.ddlProperty.SelectedValue = this.property; this.txtKeywords.Text = this.keywords; //图表或列表显示 BLL.article bll = new BLL.article(); switch (this.prolistview) { case "Txt": this.rptList2.Visible = false; this.rptList1.DataSource = bll.GetGoodsList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList1.DataBind(); break; default: this.rptList1.Visible = false; this.rptList2.DataSource = bll.GetGoodsList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList2.DataBind(); break; } //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("list.aspx", "channel_id={0}&category_id={1}&keywords={2}&property={3}&page={4}", this.channel_id.ToString(), this.category_id.ToString(), this.keywords, this.property, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void Bind(int page) { int totalCount; int pageSize = 10; //出租 this.repdate1.DataSource = bll.GetGoodsList(pageSize, page, " channel_id=3 and user_id=" + userid, "sort_id asc,add_time desc", out totalCount); this.repdate1.DataBind(); aspPage.PageSize = pageSize; aspPage.RecordCount = totalCount; chuzuCount = totalCount; }
private void Bind(int page) { int totalCount; int pageSize = 10; //最新商品 this.repdate1.DataSource = bll.GetGoodsList(pageSize, page, " channel_id=" + channel_id + GetWhere() + "", "sort_id asc,add_time desc", out totalCount); this.repdate1.DataBind(); aspPage.PageSize = pageSize; aspPage.RecordCount = totalCount; }
private void Bind(int page) { BLL.article bll = new BLL.article(); int totalCount; int pageSize = 10; //最新商品 this.repdate.DataSource = bll.GetGoodsList(pageSize, page, " Status=3", "sort_id asc,add_time desc", out totalCount); this.repdate.DataBind(); aspPage.PageSize = pageSize; aspPage.RecordCount = totalCount; }
private void BindJp(int page) { int totalCount; int pageSize = 8; //發佈的商品 if (!string.IsNullOrEmpty(Request.QueryString["status"])) { sqlwhere = " and Status=" + Request.QueryString["status"]; } this.repddata.DataSource = bll.GetGoodsList(pageSize, page, " user_id=" + WEBUserCurrent.UserID + sqlwhere, "sort_id asc,add_time desc", out totalCount); this.repddata.DataBind(); aspPage.PageSize = pageSize; aspPage.RecordCount = totalCount; }