コード例 #1
0
        private void LinkbuttonNext_Command(object source, CommandEventArgs e)
        {
            IPaginatedList productList = this.NPetshopState.CurrentList;

            productList.NextPage();
            DataBind();
        }
コード例 #2
0
        protected void LinkbuttonNext_Command(object source, System.Web.UI.WebControls.CommandEventArgs e)
        {
            IPaginatedList productList = this.NPetshopState.CurrentList;

            productList.NextPage();
            DataBind();
        }
コード例 #3
0
        private void LinkbuttonNext_Command(object source, System.Web.UI.WebControls.CommandEventArgs e)
        {
            IPaginatedList productList = this.WebLocalSingleton.CurrentList;

            productList.NextPage();
            this.CurrentController.NextView = WebViews.PRODUCTS_BY_CATEGORY;
        }
コード例 #4
0
        public IEnumerator GetAllLines()
        {
            ArrayList allItems = new ArrayList();
            int       index    = _cartLines.PageIndex;

            _cartLines.GotoPage(0);

            foreach (ShoppingCartLine line in _cartLines)
            {
                allItems.Add(line);
            }
            while (_cartLines.NextPage())
            {
                foreach (ShoppingCartLine line in _cartLines)
                {
                    allItems.Add(line);
                }
            }

            _cartLines.GotoPage(index);
            return(allItems.GetEnumerator());
        }