cechiril
10-27-2005, 04:39 PM
I was wondering whether DI feature is supposed to work for web controls that are loaded from a tempalte (example below):
private void Page_Load(object sender, System.EventArgs e)
{
...
// "MyWebControl.ascx" is defined in spring xml config file
Page.LoadControl("MyWebControl.ascx")
...
}
The dependencies don't seem to get injected.
Is there a workaround?
Thanks
private void Page_Load(object sender, System.EventArgs e)
{
...
// "MyWebControl.ascx" is defined in spring xml config file
Page.LoadControl("MyWebControl.ascx")
...
}
The dependencies don't seem to get injected.
Is there a workaround?
Thanks