private void TreeBind(string strWhere) { BLL.Driver driverBll = new BLL.Driver(); DataTable driverDT = driverBll.GetList(0, "IsDimission != 1 ", "Id desc").Tables[0]; ddlDriver.Items.Clear(); ddlDriver.Items.Add(new ListItem("不限", "")); foreach (DataRow dr in driverDT.Rows) { this.ddlDriver.Items.Add(new ListItem(string.Format("{0}({1})", dr["CarNumber"].ToString(), dr["RealName"].ToString()), dr["CarNumber"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); this.txtKeywords.Text = this.keywords; BLL.Driver bll = new BLL.Driver(); 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("driver_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }