public virtual void RenderView(ViewContext context) { context.Context.Response.Cache.SetExpires(DateTime.Now); ControlContainerPage page = new ControlContainerPage(this); page.Output = _output; string contentType = context.Context.Response.ContentType; page.RenderView(context); context.Context.Response.ContentType = contentType; }
public virtual void RenderView(ViewContext context) { context.Context.Response.Cache.SetExpires(DateTime.Now); ControlContainerPage page = new ControlContainerPage(this); page.Output = _output; string contentType = context.Context.Response.ContentType; page.RenderView(context); context.Context.Response.ContentType = contentType; }