title: How to get Ninject working with ASP.NET WebForms App
body: <p>I have a really beginner's level question. </p>
  
  <p>I am trying to get going with Ninject in an ASP.NET WebForms application, but I don't know how. I know how to do this, roughly, in MVC 3, as described <a href="https://stackoverflow.com/questions/6646244/mvc-3-how-to-learn-how-to-test-with-nunit-ninject-and-moq/6646591#6646591">here</a>. But, I'm stuck when trying to do the same thing in a WebForms app.</p>
  
  <p>For example, in a WebForms app, where do I setup binding similar to below?</p>
  
  <pre><code>private static void RegisterServices(IKernel kernel)  
  {  
    kernel.Bind&lt;IRepository&gt;().To&lt;MyRepositoryImpl&gt;();
    kernel.Bind&lt;IWebData&gt;().To&lt;MyWebDAtaImpl&gt;();
  }
  </code></pre>
  
  <p>This is an example of the kinds of questions I have, and am hoping the SO community can help with. I have lots of such questions, but in an attempt to just start somewhere, I'll leave off with that one question for now.</p>