AJH.CMS.WEB.UI.CMSPageBase.OnInit C# (CSharp) Method

OnInit() protected method

protected OnInit ( System e ) : void
e System
return void
        protected override void OnInit(System.EventArgs e)
        {
            base.OnInit(e);

            CMS.Core.Entities.Page currentPage = PageManager.GetCachePage(CMSConfig.ConstantManager.KeyCachePage, Path.GetFileNameWithoutExtension(Request.Url.AbsolutePath), CMSContext.PortalID, CMSContext.LanguageID);
            if (currentPage != null)
            {
                _CurrentPage = currentPage;
                this.Title = currentPage.Title;

                this.Page.MetaKeywords = currentPage.KeyWords;
                this.Page.MetaDescription = currentPage.Description;
            }
            else
            {
                _CurrentPage = null;
            }
        }
        #endregion