// This method is only used by WebPageBase to allow passing in the view context and writer. public void ExecutePageHierarchy( WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage ) { PushContext(pageContext, writer); if (startPage != null) { if (startPage != this) { var startPageContext = WebPageContext.CreateNestedPageContext <object>( parentContext: pageContext, pageData: null, model: null, isLayoutPage: false ); startPageContext.Page = startPage; startPage.PageContext = startPageContext; } startPage.ExecutePageHierarchy(); } else { ExecutePageHierarchy(); } PopContext(); }
// This method is only used by WebPageBase to allow passing in the view context and writer. public void ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) { PushContext(pageContext, writer); if (PrepareStartPage(pageContext, startPage)) { startPage.ExecutePageHierarchy(); } else { ExecutePageHierarchy(); } PopContext(); }
public void ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) { this.PushContext(pageContext, writer); if (startPage != null) { if (startPage != this) { WebPageContext nestedPageContext = WebPageContext.CreateNestedPageContext<object>(pageContext, (IDictionary<object, object>) null, (object) null, false); nestedPageContext.Page = startPage; startPage.PageContext = nestedPageContext; } startPage.ExecutePageHierarchy(); } else base.ExecutePageHierarchy(); this.PopContext(); }
// This method is only used by WebPageBase to allow passing in the view context and writer. public void ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) { PushContext(pageContext, writer); if (startPage != null) { if (startPage != this) { var startPageContext = Util.CreateNestedPageContext<object>(parentContext: pageContext, pageData: null, model: null, isLayoutPage: false); startPageContext.Page = startPage; startPage.PageContext = startPageContext; } startPage.ExecutePageHierarchy(); } else { ExecutePageHierarchy(); } PopContext(); }