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