protected void MagicPager_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e) { this.magicPagerSub.PageSize = this.magicPagerMain.PageSize; using (ISession session = new Session()) { this.QueryAndBindData(session, e.NewPageIndex, e.Pager.PageSize, false); } }
protected void MagicPager_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e) { //翻页事件 this.magicPagerSub.PageSize = this.magicPagerMain.PageSize; //如果页面有2个翻页控件,则必须写上这一句(控件bug) using (ISession session = new Session()) { QueryAndBindData(session, e.NewPageIndex, e.Pager.PageSize, false); } }
protected void mpage_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e) { this.mPageSub.PageSize = this.mpage.PageSize;//如果页面有2个翻页控件,则必须写上这一句(控件bug) int pageIndex = e.NewPageIndex; using (ISession session = new Session()) { QueryAndBindDate(session, pageIndex, this.mpage.PageSize, false); } }