CTL.Controls/Pager.cs

(开头部分) 16KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace CTL.Controls
{

    using System;
    using System.Collections.Specialized;
    using System.Text;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    using CTL.Common;
    /// <summary>
    /// 
    /// </summary>
    public class Pager : WebControl
    {
        private bool _alternate;
        private int _currentPage = Utils.StrToInt(Requests.All("page"));
        private string _currentUrl = "";
        private string _displayMode = "";
        private bool _enableQueryString;
        private string _firstPage = "";
        private string _lastPage = "";
        private int _maxPage;
        private string _nextPage = "";
        private int _pageSize;
        private string _prevPage = "";
        private string _rawUrl = "";
        private string _rewriteQueryString = "";
        private string _rewriteUrlPattern = "";
        private bool _showCounts;
        private bool _showPageSize;
        private int _total;
        private NameValueCollection m_itemColl;
        /// <summary>
        /// 
        /// </summary>
        public Pager()
        {
            if (this._currentPage < 1)
            {
                this._currentPage = 1;
            }
            this._maxPage = 1;
            this._pageSize = 0x19;
            this._total = 0;
            this._showCounts = true;
            this._alternate = false;
            this._showPageSize = false;
            this._enableQueryString = true;
            this._rawUrl = HttpContext.Current.Request.RawUrl;
            if (this._rawUrl.IndexOf('?') != -1)
            {
                this._rewriteQueryString = "?" + this._rawUrl.Substring(this._rawUrl.IndexOf('?') + 1);
            }
            else
            {
                this._rewriteQueryString = string.Empty;
            }
        }
后面还有 469 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。