打印本文 打印本文 关闭窗口 关闭窗口
ASP.NET分页组件学与用——教学篇(源代码)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3353  更新时间:2009/4/23 10:41:52  文章录入:mintao  责任编辑:mintao

                    _currentPage = 1;

                else

                    _currentPage = value;

            }

            get

            {

                return _currentPage;

            }

        }

 

        [DefaultValue(1),Category("Customer")]

        public int AllCount

        {

            get

            {

                return _allCount;

            }

            set

            {

                if(_allCount < 0)

                    throw new Exception("记录总条数不能为负数");

                else

                    _allCount = value;

            }

        }

 

        [DefaultValue(1),Category("Customer")]

        public int Pages//总页数

        {

            get

            {

                if(this._allCount % this._count > 0)

                    return ((int)this._allCount / this._count) + 1;

                else

                    return ((int)this._allCount / this._count);

            }

        }

 

        [DefaultValue(1),Category("Customer")]

        public int ShowPages

        {

            set

            {

                if(value > 0)

                    _showPages = value;

                else

                    _showPages = 9;

            }

            get

上一页  [1] [2] [3] [4] [5] [6]  下一页

打印本文 打印本文 关闭窗口 关闭窗口