viewengine

Building a Custom ViewEngine for ASP.NET MVC

In larger MVC projects, my group often has quite a few partial views in the Shared folder. Generally this leads to a lot of .cshtml files in the Shared folder, which tends to get a bit crowded: But many of those partial views apply to multiple actions in a single controller. I'd like to have a way to associate some of those partial views with the controller and views they are related to, while still allowing MVC to render them... Read more >