private void ChanYeBind() { BLL.daikuan_chanye bll = new BLL.daikuan_chanye(); DataTable dt = bll.GetList("").Tables[0]; ddlChanYe.Items.Clear(); ddlChanYe.Items.Add(new ListItem("请选择产业规模", "")); foreach (DataRow dr in dt.Rows) { ddlChanYe.Items.Add(new ListItem(dr["name"].ToString(), dr["id"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); txtKeywords.Text = this.keywords; BLL.daikuan_chanye bll = new BLL.daikuan_chanye(); 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("daikuan_chanye_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }