System.Web.WebPages.WebPageBase.ConfigurePage C# (CSharp) Method

ConfigurePage() protected method

protected ConfigurePage ( WebPageBase parentPage ) : void
parentPage WebPageBase
return void
        protected virtual void ConfigurePage(WebPageBase parentPage)
        {
        }

Usage Example

Example #1
0
        private HelperResult RenderPageCore(string path, bool isLayoutPage, object[] data)
        {
            if (String.IsNullOrEmpty(path))
            {
                throw new ArgumentException(
                          CommonResources.Argument_Cannot_Be_Null_Or_Empty,
                          "path"
                          );
            }

            return(new HelperResult(
                       writer =>
            {
                path = NormalizePath(path);
                WebPageBase subPage = CreatePageFromVirtualPath(
                    path,
                    Context,
                    VirtualPathFactory.Exists,
                    DisplayModeProvider,
                    DisplayMode
                    );
                var pageContext = CreatePageContextFromParameters(isLayoutPage, data);

                subPage.ConfigurePage(this);
                subPage.ExecutePageHierarchy(pageContext, writer);
            }
                       ));
        }
All Usage Examples Of System.Web.WebPages.WebPageBase::ConfigurePage