virtual view inheriting from System.Web.Mvc.ViewStartPage

可紊 提交于 2019-12-24 10:21:18

问题


I had an issue with when trying to retrieve virtual views from a file by means of VirtualPathProvider, which is described in this stackoverflow thread.

Now my question is why does a virtual view inherits from System.Web.Mvc.ViewStartPage, and how to make it to inherit from WebViewPage so that I can use

ViewResult View(string viewName);

instead of

PartialViewResult PartialView(string viewName);

like in described workaround?

来源:https://stackoverflow.com/questions/13363273/virtual-view-inheriting-from-system-web-mvc-viewstartpage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!