1

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?

Community
  • 1
  • 1
Stefan Fachmann
  • 555
  • 1
  • 5
  • 18

0 Answers0