private void FieldBind() { BLL.article_attribute_field bll = new BLL.article_attribute_field(); DataTable dt = bll.GetList(0, "", "is_sys desc,sort_id asc,id desc").Tables[0]; this.cblAttributeField.Items.Clear(); foreach (DataRow dr in dt.Rows) { this.cblAttributeField.Items.Add(new ListItem(dr["title"].ToString(), dr["name"].ToString() + "," + dr["id"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { this.page = MXRequest.GetQueryInt("page", 1); this.ddlControlType.SelectedValue = this.control_type; this.txtKeywords.Text = this.keywords; BLL.article_attribute_field bll = new BLL.article_attribute_field(); 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("attribute_field_list.aspx", "control_type={0}&keywords={1}&page={2}", this.control_type, this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void FieldBind() { BLL.article_attribute_field bll = new BLL.article_attribute_field(); DataTable dt = bll.GetList(0, "", "sort_id asc,id desc").Tables[0]; this.cblAttributeField.Items.Clear(); foreach (DataRow dr in dt.Rows) { this.cblAttributeField.Items.Add(new ListItem(dr["title"].ToString(), dr["name"].ToString() + "," + dr["id"].ToString())); } }