Hello
I have 2 user controls within a webform. I want to raise an event on one of them and be handled in the other one by subscribing to it.
So in the first one i have these declarations
Can you tell me what sort of code i need in the other one to subscribe to it?
Thanks
I have 2 user controls within a webform. I want to raise an event on one of them and be handled in the other one by subscribing to it.
So in the first one i have these declarations
Code:
public event EventHandler ImportUsers;
protected void OnImportUsers(EventArgs e)
{
if (ImportUsers != null)
{ ImportUsers(this, e); }
}
Can you tell me what sort of code i need in the other one to subscribe to it?
Thanks