protected void Page_Load(object sender, EventArgs e) { fid = MXRequest.GetQueryInt("fid"); wid = MXRequest.GetQueryInt("wid"); openid = MyCommFun.RequestOpenid(); if (!IsPostBack) { BLL.wx_fc_houseType htBll = new BLL.wx_fc_houseType(); BLL.wx_fc_floor fBll = new BLL.wx_fc_floor(); fModel = fBll.GetModel(fid); this.rptHt.DataSource = htBll.GetList(string.Format(" wid={0} and fid={1} ", wid, fid)); jlNum = htBll.GetList(string.Format(" wid={0} and fid={1} ", wid, fid)).Tables[0].Rows.Count; this.rptHt.DataBind(); } }
private void RptBind(string _strWhere, string _orderby) { Model.wx_userweixin weixin = GetWeiXinCode(); _strWhere = "wId=" + weixin.id + " " + _strWhere; _strWhere += " and fid=" + fid; this.page = MXRequest.GetQueryInt("page", 1); txtKeywords.Text = this.keywords; this.rptList.DataSource = bll.GetList(this.pageSize, page, _strWhere, _orderby, out totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("hxMgr.aspx", "keywords={0}&page={1}&id={2}", this.keywords, "__id__", this.fid.ToString()); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }