private void attributebind() { tbl_sinkia_attribute bll = new tbl_sinkia_attribute(); DataTable dt = bll.GetList("1=1 order by id").Tables[0]; this.attribute.Items.Clear(); this.attribute.Items.Add(new ListItem("默认...", "0")); foreach (DataRow dr in dt.Rows) { string Id = dr["id"].ToString(); string Title = "(" + dr["attribute_name"].ToString().Trim() + ")" + dr["attribute_value"].ToString().Trim(); this.attribute.Items.Add(new ListItem(Title, Id)); } }
private void RptBind(string _strWhere, string _orderby) { this.page = AXRequest.GetQueryInt("page", 1); txtKeywords.Text = this.keywords; tbl_sinkia_attribute bll = new tbl_sinkia_attribute(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("pro_attribute_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }