O'Reilly logo

ASP.NET MVC 1.0 Quickly by Maarten Balliauw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a ViewEngine

A ViewEngine maps view names to actual files on the web server and instantiates a View if one is found. By default, views are located in the Views | ControllerName project folder, or in the Views | Shared folder. There are some custom ViewEngine implementations available on the Internet (NHaml, Spark, and so on; you will find links to these in Appendix C of this book); we will be building a custom ViewEngine and View implementation.

All ViewEngine implementations for the ASP.NET MVC framework implement the IViewEngine interface:

public interface IViewEngine { ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName); ViewEngineResult FindView(ControllerContext controllerContext, string ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required