How can I register to System.Web.UI.Page dependencies in a ASP.Net site with Ninject
===

I'm an old rifattorizzando Asp.net site and I was trying to introduce as Ninject IOC.

Unfortunately most of the concrete implementations need objects that are known at run-time as System.Web.UI.Page.

Do not raise you have to do is instantiate objects when passing in contruttore dell'attvazione necessary parameters.

    Dim facade = Kernel.Get(Of IHTMLInputFacade)(New ConstructorArgument ("page", Me))

If I continue on this path I have to instantiate the object to pass all the parameters of the dependent objects.

 

    Kernel.Get (Of myRoot) (New ConstructorArgument ("page", Me, true),
                            New ConstructorArgument ("request", Request, true),
                            ....
                           )


I see no advantage in doing so ... it's just more harder to write.

where am I doing wrong?