private void TreeBind() { BLL.plugins.advert bll = new BLL.plugins.advert(); DataTable dt = bll.GetList("").Tables[0]; this.ddlAdvertId.Items.Clear(); this.ddlAdvertId.Items.Add(new ListItem("所有广告位", "")); foreach (DataRow dr in dt.Rows) { this.ddlAdvertId.Items.Add(new ListItem(dr["title"].ToString(), dr["id"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { this.page = OSRequest.GetQueryInt("page", 1); this.txtKeywords.Text = this.keywords; this.ddlProperty.SelectedValue = this.property; BLL.plugins.advert bll = new BLL.plugins.advert(); 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("index.aspx", "keywords={0}&property={1}&page={2}", this.keywords, this.property, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void RptBind(string _strWhere, string _orderby) { this.page = OSRequest.GetQueryInt("page", 1); this.txtKeywords.Text = this.keywords; this.ddlProperty.SelectedValue = this.property; BLL.plugins.advert bll = new BLL.plugins.advert(); 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("index.aspx", "keywords={0}&property={1}&page={2}", this.keywords, this.property, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void TreeBind() { BLL.plugins.advert bll = new BLL.plugins.advert(); DataTable dt = bll.GetList("").Tables[0]; this.ddlAdvertId.Items.Clear(); this.ddlAdvertId.Items.Add(new ListItem("所有广告位", "")); foreach (DataRow dr in dt.Rows) { this.ddlAdvertId.Items.Add(new ListItem(dr["title"].ToString(), dr["id"].ToString())); } }