This seems to have solved the problem for me.
What is it about the code in the NinjectHttpModule that could be
causing the experience I was having? I copied the code from
NinjectHttpModule into PageBase's OnInitComplete event handler and
again received the strange behavior from Repeaters/ListViews as I did
when using the module. This is the code that appears to cause
everything to fail:
/// <summary>
/// Search for usercontrols within the parent control
/// and inject their dependencies using KernelContainer.
/// </summary>
/// <param name="parent">The parent control.</param>
private static void InjectUserControls( Control parent )
{
if ( parent == null || parent.Controls == null )
{
return;
}
foreach ( Control control in parent.Controls )
{
if ( control is UserControl )
{
KernelContainer.Inject( control );
}
InjectUserControls( control );
}
}
On Sep 2, 5:45 pm, Charles Vallance <
vallance.char...@gmail.com>
wrote:
> >
ninject+u...@googlegroups.com<
ninject%2Bunsu...@googlegroups.com>
> > .