Вот, нашёл в датагриде

    Date: 03/27/07 (Code WTF)    Keywords: asp

    C#, о том как надо писать контролы на ASP.NET не знаем, похапе форева.

    #region Номер текущей страницы
    protected int _currentPageNumber = 1;
    protected bool firstReadCurrentPage = true;
    public virtual int CurrentPageNumber
    {
        get
        {
            if (firstReadCurrentPage)
            {
                try
                {
                    if (Page.Request.QueryString[ID + "CurrentPage"] != null)
                    {
                        if (Convert.ToInt32(Page.Request.QueryString[ID + "CurrentPage"]) > 0)
                            _currentPageNumber = Convert.ToInt32(Page.Request.QueryString[ID + "CurrentPage"]);
                    }
                }
                catch { }
            }
            firstReadCurrentPage = false;
    
            return this._currentPageNumber;
        }
        set { this._currentPageNumber = value; }
    }
    #endregion

    Source: http://community.livejournal.com/code_wtf/76115.html

« Не прикол с VS 2005 || Java EE приложение »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home