Ejemplo n.º 1
0
 public TemplateContext(HttpContextBase context,
                        TemplateRenderingBase template, object model)
 {
     _context  = context;
     _template = template;
     _model    = model;
 }
Ejemplo n.º 2
0
		public TemplateContext(HttpContextBase context,
			TemplateRenderingBase template, object model)
		{
			_context = context;
			_template = template;
			_model = model;
		}
Ejemplo n.º 3
0
        // This method is only used by WebPageBase to allow passing in the view context and writer.
        public void ExecutePageHierarchy(TemplateContext context, TextWriter writer, TemplateRenderingBase startPage)
        {
            PushContext(context, writer);

            if (startPage != null)
            {
                if (startPage != this)
                {
                    var startPageContext = CreateNestedPageContext <object>(context, null, null, false);
                    startPageContext.Template = startPage;
                    startPage.TemplateContext = startPageContext;
                }
                startPage.Execute();
            }
            else
            {
                Execute();
            }
            PopContext();
        }