public object CreateInstance(string virtualPath) { IVirtualContent virtualContent = new FileVirtualContent(_mvcApplication.ContentProvider, virtualPath); var webPage = _mvcApplication.CreatePage(virtualContent, false); webPage.Initialize(_viewContext, virtualPath, _mvcApplication); return(webPage); }
private IWebViewPage Create(ViewContext viewContext) { // var virtualContent = _mvcApplication.GetVirtualContent(_virtualPath); var webPage = _mvcApplication.CreatePage(_virtualContent, !_isPartialView); webPage.Initialize(viewContext, _virtualContent.VirtualPath, _mvcApplication); return(webPage); }