PDA

View Full Version : IApplicationEventListener & usercontrols


keepoffthegrass
04-11-2007, 04:18 PM
I am using the contexts PublishEvent method i.e. this.ApplicationContext.PublishEvent(this, new ApplicationEventArgs());

I have created a Usercontrol that implements IApplicationEventListener.

I also have another object (we'll call this "A"). This also implements IApplicationEventListener and is defined in the <objects> collection in the spring section of my web.config.

When the event is published the usercontrols HandleApplicationEvent method does not fire, however object "A"s does.

Has anybody been able to get usercontrols to respond to these events?

Erich Eichinger
04-12-2007, 10:57 AM
Hi,

Please provide some more details. Are you talking about web usercontrols or windows forms?

Could you post your object configuration file?

-Erich