⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aspnetpager.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:
            set
            {
                this.ViewState["PagingButtonType"] = value;
            }
        }

        [Description("上一页按钮上显示的文本"), Browsable(true), Category("导航按钮"), DefaultValue("<font face=\"webdings\">3</font>上一页")]
        public string PrevPageText
        {
            get
            {
                object obj2 = this.ViewState["PrevPageText"];
                if (obj2 != null)
                {
                    return (string) obj2;
                }
                return "上一页";
            }
            set
            {
                this.ViewState["PrevPageText"] = value;
            }
        }

        [Browsable(false), Category("Data"), Description("要分页的所有记录的总数,该值须在程序运行时设置,默认值为225是为设计时支持而设置的参照值。"), DefaultValue(0xe1)]
        public int RecordCount
        {
            get
            {
                object obj2 = this.ViewState["Recordcount"];
                if (obj2 != null)
                {
                    return (int) obj2;
                }
                return 0;
            }
            set
            {
                this.ViewState["Recordcount"] = value;
            }
        }

        [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public int RecordsRemain
        {
            get
            {
                if (this.CurrentPageIndex < this.PageCount)
                {
                    return (this.RecordCount - (this.CurrentPageIndex * this.PageSize));
                }
                return 0;
            }
        }

        [DefaultValue(30), Category("文本框及提交按钮"), Browsable(true), Description("指定当ShowInputBox设为ShowInputBox.Auto时,当总页数达到多少时才显示页索引输入文本框")]
        public int ShowBoxThreshold
        {
            get
            {
                object obj2 = this.ViewState["ShowBoxThreshold"];
                if (obj2 != null)
                {
                    return (int) obj2;
                }
                return 30;
            }
            set
            {
                this.ViewState["ShowBoxThreshold"] = value;
            }
        }

        [Description("显示当前页和总页数信息,默认值为不显示,值为ShowCustomInfoSection.Left时将显示在页索引前,为ShowCustomInfoSection.Right时将显示在页索引后"), Category("自定义信息区"), DefaultValue(0), Browsable(true)]
        public PowerEasy.Controls.ShowCustomInfoSection ShowCustomInfoSection
        {
            get
            {
                object obj2 = this.ViewState["ShowCustomInfoSection"];
                if (obj2 != null)
                {
                    return (PowerEasy.Controls.ShowCustomInfoSection) obj2;
                }
                return PowerEasy.Controls.ShowCustomInfoSection.Never;
            }
            set
            {
                this.ViewState["ShowCustomInfoSection"] = value;
            }
        }

        [DefaultValue(true), Description("是否显示已禁用的按钮"), Browsable(true), Category("导航按钮")]
        public bool ShowDisabledButtons
        {
            get
            {
                object obj2 = this.ViewState["ShowDisabledButtons"];
                if (obj2 != null)
                {
                    return (bool) obj2;
                }
                return true;
            }
            set
            {
                this.ViewState["ShowDisabledButtons"] = value;
            }
        }

        [DefaultValue(true), Category("导航按钮"), Description("是否在页导航元素中显示第一页和最后一页按钮"), Browsable(true)]
        public bool ShowFirstLast
        {
            get
            {
                object obj2 = this.ViewState["ShowFirstLast"];
                if (obj2 != null)
                {
                    return (bool) obj2;
                }
                return true;
            }
            set
            {
                this.ViewState["ShowFirstLast"] = value;
            }
        }

        [Browsable(true), DefaultValue(1), Description("指定页索引文本框的显示方式"), Category("文本框及提交按钮")]
        public PowerEasy.Controls.ShowInputBox ShowInputBox
        {
            get
            {
                object obj2 = this.ViewState["ShowInputBox"];
                if (obj2 != null)
                {
                    return (PowerEasy.Controls.ShowInputBox) obj2;
                }
                return PowerEasy.Controls.ShowInputBox.Always;
            }
            set
            {
                this.ViewState["ShowInputBox"] = value;
            }
        }

        [Description("指定当鼠标停留在导航按钮上时,是否显示工具提示"), Category("导航按钮"), Browsable(true), DefaultValue(true)]
        public bool ShowNavigationToolTip
        {
            get
            {
                object obj2 = this.ViewState["ShowNavigationToolTip"];
                if (obj2 != null)
                {
                    return (bool) obj2;
                }
                return true;
            }
            set
            {
                this.ViewState["ShowNavigationToolTip"] = value;
            }
        }

        [Description("是否在页导航元素中显示数值按钮"), DefaultValue(true), Category("导航按钮"), Browsable(true)]
        public bool ShowPageIndex
        {
            get
            {
                object obj2 = this.ViewState["ShowPageIndex"];
                return ((obj2 != null) && ((bool) obj2));
            }
            set
            {
                this.ViewState["ShowPageIndex"] = value;
            }
        }

        [Category("导航按钮"), DefaultValue(true), Description("是否显示每页的总数"), Browsable(true)]
        public bool ShowPageSize
        {
            get
            {
                object obj2 = this.ViewState["ShowPageSize"];
                if (obj2 != null)
                {
                    return (bool) obj2;
                }
                return true;
            }
            set
            {
                this.ViewState["ShowPageSize"] = value;
            }
        }

        [DefaultValue(true), Browsable(true), Description("是否在页导航元素中显示上一页和下一页按钮"), Category("导航按钮")]
        public bool ShowPrevNext
        {
            get
            {
                object obj2 = this.ViewState["ShowPrevNext"];
                if (obj2 != null)
                {
                    return (bool) obj2;
                }
                return true;
            }
            set
            {
                this.ViewState["ShowPrevNext"] = value;
            }
        }

        [DefaultValue((string) null), Description("应用于提交按钮的CSS类名"), Browsable(true), Category("文本框及提交按钮")]
        public string SubmitButtonClass
        {
            get
            {
                return (string) this.ViewState["SubmitButtonClass"];
            }
            set
            {
                this.ViewState["SubmitButtonClass"] = value;
            }
        }

        [Category("文本框及提交按钮"), Description("应用于提交按钮的CSS样式"), Browsable(true), DefaultValue((string) null)]
        public string SubmitButtonStyle
        {
            get
            {
                return (string) this.ViewState["SubmitButtonStyle"];
            }
            set
            {
                this.ViewState["SubmitButtonStyle"] = value;
            }
        }

        [DefaultValue("go"), Browsable(true), Category("文本框及提交按钮"), Description("提交按钮上的文本")]
        public string SubmitButtonText
        {
            get
            {
                object obj2 = this.ViewState["SubmitButtonText"];
                if (obj2 != null)
                {
                    return (string) obj2;
                }
                return "转到";
            }
            set
            {
                if (value.Trim().Length > 0)
                {
                    this.ViewState["SubmitButtonText"] = value;
                }
            }
        }

        [Category("文本框及提交按钮"), Description("页索引输入文本框后的文本内容字符串"), Browsable(true), DefaultValue((string) null)]
        public string TextAfterInputBox
        {
            get
            {
                return (string) this.ViewState["TextAfterInputBox"];
            }
            set
            {
                this.ViewState["TextAfterInputBox"] = value;
            }
        }

        [Browsable(true), DefaultValue((string) null), Category("文本框及提交按钮"), Description("页索引输入文本框前的文本内容字符串")]
        public string TextBeforeInputBox
        {
            get
            {
                return (string) this.ViewState["TextBeforeInputBox"];
            }
            set
            {
                this.ViewState["TextBeforeInputBox"] = value;
            }
        }

        [DefaultValue("page"), Browsable(true), Description("当启用Url分页方式时,显示在url中表示要传递的页索引的参数的名称"), Category("分页")]
        public string UrlPageIndexName
        {
            get
            {
                return this.urlPageIndexName;
            }
            set
            {
                this.urlPageIndexName = value;
            }
        }

        [Category("分页"), Description("是否使用url传递分页信息的方式来分页"), Browsable(true), DefaultValue(false)]
        public bool UrlPaging
        {
            get
            {
                return this.urlPaging;
            }
            set
            {
                this.urlPaging = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -