private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); txtKeywords.Text = this.keywords; BLL.member_level bll = new BLL.member_level(); 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("member_level_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void LevelBind() { BLL.member_level bll = new BLL.member_level(); DataTable dt = bll.GetList("").Tables[0]; BLL.village villageBll = new BLL.village(); DataTable dtVillage = villageBll.GetParentList(0); ddlTown.Items.Clear(); ddlTown.Items.Add(new ListItem("请选择所属乡镇", "0")); foreach (DataRow dr in dtVillage.Rows) { string Id = dr["id"].ToString(); string Title = dr["name"].ToString().Trim(); ddlTown.Items.Add(new ListItem(Title, Id)); } }