Articles : Page 1 of 1

  • Dependency Injection in ASP.NET MVC: Views

    Dependency Injection in ASP.NET MVC: Views

    May 10
    19

    Other posts in this series: Controllers Contextual controller injection Filters Action Results And now for a bit more controversial shift. While most folks doing DI in ASP.NET MVC see the benefit of the ability to provide injection around the controller-side of things (filters, action results, controllers etc.), I’ve also seen a lot of benefit from injection on the view side. But before delve into the how, let’s first look at the why. The responsibility of a view is to render a model...

    • AJAX
    • MVC2
    • DependencyInjection


  • 1