Exemplo n.º 1
0
        public void RenderPage(int templateId)
        {
            if (templateId != 0)
            {
                template templateDesign = new template(templateId);

                _pageContentControl = templateDesign.ParseWithControls(this);
                _pageContent.Append(templateDesign.TemplateContent);
            }
        }
Exemplo n.º 2
0
        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)");
            }
        }
Exemplo n.º 4
0
		public void RenderPage(int templateId)
		{
			if (templateId != 0)
			{				
				template templateDesign = new template(templateId);
			
				_pageContentControl = templateDesign.ParseWithControls(this);
				_pageContent.Append(templateDesign.TemplateContent);
			}
		}
Exemplo n.º 5
0
		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);
			}
		}