private void TreeBind(DropDownList ddl) { BLL.job_order bll = new BLL.job_order(); DataTable dt = bll.GetList().Tables[0]; ddl.Items.Clear(); ddl.Items.Add(new ListItem("请选择类型...", "")); foreach (DataRow dr in dt.Rows) { ddl.Items.Add(new ListItem(dr["service_name"].ToString(), dr["service_id"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); this.txtKeywords.Text = this.keywords; BLL.job_order bll = new BLL.job_order(); 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("select_single.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }