How can I implement Ninject or DI on asp.net Web Forms?

Here are the steps to use Ninject with WebForms. Step1 – Downloads There are two downloads required – Ninject-2.0.0.0-release-net-3.5 and the WebForm extensions Ninject.Web_1.0.0.0_With.log4net (there is an NLog alternative). The following files need to be referenced in the web application: Ninject.dll, Ninject.Web.dll, Ninject.Extensions.Logging.dll and Ninject.Extensions.Logging.Log4net.dll. Step 2 – Global.asax The Global class needs to derive … Read more