Ejemplo n.º 1
0
 //Pager's PageChange event handler
 protected void MagicPager_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e)
 {
     using (_session = new Session())
     {
         QueryAndBindData(e.NewPageIndex, e.Pager.PageSize, false);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 protected void MagicPager_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e)
 {
     this.magicPagerSub.PageSize = this.magicPagerMain.PageSize; //如果页面有2个翻页控件,则必须写上这一句(控件bug)
     using (ISession session = new Session())
     {
         this.QueryAndBindData(session, this.magicPagerMain.PageSize, e.NewPageIndex, false);
     }
 }
Ejemplo n.º 4
0
 protected void MagicPager_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e)
 {
     //翻页事件
     this.magicPagerMain.CurrentPageIndex = this.magicPagerSub.CurrentPageIndex = e.NewPageIndex;
     this.magicPagerSub.PageSize          = this.magicPagerMain.PageSize; //如果页面有2个翻页控件,则必须写上这一句(控件bug)
     using (ISession session = new Session())
     {
         QueryAndBindData(session);
     }
 }
Ejemplo n.º 5
0
 protected void MagicPagerGroup_PageChanged(object src, Magic.Web.UI.PageChangedEventArgs e)
 {
     QueryAndBindData(this.rptSubscribeGroup, this.magicPagerGroup, true, e.NewPageIndex, e.Pager.PageSize, false);
 }