示例#1
0
        public void RenderPage(int templateId)
        {
            if (templateId != 0)
            {
                template templateDesign = new template(templateId);

                _pageContentControl = templateDesign.ParseWithControls(this);
                _pageContent.Append(templateDesign.TemplateContent);
            }
        }
示例#2
0
文件: page.cs 项目: jraghu24/Rraghu
        public void RenderPage(int templateId)
        {
            if (templateId != 0)
            {
                template templateDesign = new template(templateId);

                HttpContext.Current.Items["umbPageObject"] = this;

                _pageContentControl = templateDesign.ParseWithControls(this);
                _pageContent.Append(templateDesign.TemplateContent);
            }
        }
        public void RenderPage(int Template)
        {
            if (Template != 0)
            {
                HttpContext.Current.Trace.Write("umbracoPage", "Loading template (ID: " + Template + ")");
                template templateDesign = new template(Template);

                HttpContext.Current.Trace.Write("page", "Template loaded");
                HttpContext.Current.Items["umbPageObject"] = this;

                pageContentControl = templateDesign.ParseWithControls(this);
                pageContent.Append(templateDesign.TemplateContent);
            }
            else
            {
                HttpContext.Current.Trace.Warn("page.RenderPage", "No template defined (value=0)");
            }
        }
示例#4
0
		public void RenderPage(int templateId)
		{
			if (templateId != 0)
			{				
				template templateDesign = new template(templateId);
			
				_pageContentControl = templateDesign.ParseWithControls(this);
				_pageContent.Append(templateDesign.TemplateContent);
			}
		}
示例#5
0
文件: page.cs 项目: elrute/Triphulcas
		public void RenderPage(int templateId)
		{
			if (templateId != 0)
			{				
				template templateDesign = new template(templateId);
			
				HttpContext.Current.Items["umbPageObject"] = this;

				_pageContentControl = templateDesign.ParseWithControls(this);
				_pageContent.Append(templateDesign.TemplateContent);
			}
		}