コード例 #1
0
ファイル: WebPageBase.cs プロジェクト: belav/AspNetWebStack
        // 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();
        }
コード例 #2
0
        // 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();
        }
コード例 #3
0
 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();
 }
コード例 #4
0
        // 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();
        }
コード例 #5
0
        // 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();
        }