private void TreeBind() { BLL.plugin_images_class bll = new BLL.plugin_images_class(); DataTable dt = bll.GetList(0, "is_lock=0", "sort_id asc,id asc").Tables[0]; this.ddlClassId.Items.Clear(); this.ddlClassId.Items.Add(new ListItem("选择标橱窗位", "")); foreach (DataRow dr in dt.Rows) { this.ddlClassId.Items.Add(new ListItem(dr["title"].ToString().Trim(), dr["id"].ToString().Trim())); } }
//绑定数据 private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryIntValue("page", 1); this.txtKeywords.Text = Utils.Htmls(this.keywords); BLL.plugin_images_class bll = new BLL.plugin_images_class(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 this.txtPageNum.Text = pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("class_list.aspx", "keywords={0}&page={1}", keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }