问题
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