Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         base.CheckAdminPower("ReadGiftPack", PowerCheckType.Single);
         base.BindControl(GiftPackBLL.ReadGiftPackList(base.CurrentPage, base.PageSize, ref this.Count), this.RecordList, this.MyPager);
     }
 }
Example #2
0
        protected override void PageLoad()
        {
            base.PageLoad();
            int queryString = RequestHelper.GetQueryString <int>("Page");

            if (queryString < 1)
            {
                queryString = 1;
            }
            int pageSize = 6;
            int count    = 0;

            this.giftPackList = GiftPackBLL.ReadGiftPackList(queryString, pageSize, ref count);
            this.ajaxPagerClass.CurrentPage = queryString;
            this.ajaxPagerClass.PageSize    = pageSize;
            this.ajaxPagerClass.Count       = count;
            this.ajaxPagerClass.DisCount    = false;
            this.ajaxPagerClass.ListType    = false;
        }
Example #3
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected override void PageLoad()
        {
            base.PageLoad();
            int currentPage = RequestHelper.GetQueryString <int>("Page");

            if (currentPage < 1)
            {
                currentPage = 1;
            }
            int pageSize = 6;
            int count    = 0;

            giftPackList = GiftPackBLL.ReadGiftPackList(currentPage, pageSize, ref count);

            ajaxPagerClass.CurrentPage = currentPage;
            ajaxPagerClass.PageSize    = pageSize;
            ajaxPagerClass.Count       = count;
            ajaxPagerClass.DisCount    = false;
            ajaxPagerClass.ListType    = false;
        }