Series Index
- Part 1: Introduction
- Part 2: Controllers
- Part 3: View Engines and View Pages
- Part 4: Filters
- Part 5: IDependencyResolver
- Part 6: Model Validation
- Part 7: Model Metadata
- Part 8: Value Providers
- Part 9: Model Binders
- Part 10: Controller Activator
- Part 11: View Page Activator
Important Update
We've made significant changes to the IoC support in ASP.NET MVC 3 Beta. Please read Part 5 for more information.
View Engine Registration and View Page Creation
ASP.NET MVC 1.0 introduced View Engines (implementing IViewEngine and IView), shipping with the single WebForms-based view engine. Views, master pages, and partial views in WebForms view engine need to derive from ViewPage, ViewMasterPage, and ViewUserControl (respectively). In MVC 3, we've introduced new dependency injection points for all of these classes (plus the new base class for Razor views, WebViewPage).
Update: (31 July 2010) I've added the source code for UnityMvcServiceLocator to the end of part 2.
Continue reading "ASP.NET MVC 3 Service Location, Part 3: View Engines/View Pages" »