Hi,
I have user control that inherits a base control class and these user controls are loaded using the LoadControl method, I can't seem to figure out how to raise events from user controls to the page that are dynamically loaded this way.
Thanks
Here is the delegate and event in the base user control class.
public delegate void SomeChangeEventHandler(object sender
, SomeChangeEventArgs e);
public event SomeChangeEventHandler SomeChangeEvent;
public virtual void OnSomeChanged(SomeChangeEventArgs e)
{
if (SomeChangeEvent != null)
{
SomeChangeEvent(this, e);
}
}