Friday, October 21, 2016

Dependency Injection with ASP.NET Web Forms

Most developers have used Dependency Injection with ASP.NET MVC and ASP.NET Web API, but it has typically been difficult to set up Dependency Injection with an IoC (Inversion of Control) container.

Well, now Microsoft is offering guidance on how to set up Dependency Injection with an IoC container such as AutoFac for use within your ASP.NET Web Forms applications:

While using Dependency Injection in an ASP.NET Web Forms does not remove all of the problems typically associated with developing ASP.NET Web Forms applications, but it does go a long way to reduce the code dependencies found in Code Behind files and makes the overall code base that much cleaner!

1 comment:

  1. I'm learning ASP.NET nowadays as I have seen that many MNC have been hiring people with the certification of Microsoft technology. Thanks for sharing the information about the dependency injection, this is a new topic to me.

    Best Regards,
    Crish Watson
    Pass Microsoft Certification Without Taking Exam