your own custom event delegate
in MyControl:
public delegate void MyEventHandler(int value, string text); public event MyEventHandler MyEvent;protected void ddl_SelectedIndexChanged(object sender, EventArgs e)
{
MyEvent(((DropDownList)sender).SelectedIndex, ((DropDownList)sender).SelectedItem.Text);}
in Parent:
this.MyControl.MyEvent += new AAL.FreedomWeb.Web.UI.UserControls.AircraftConfig.MyEventHandler(MyControl_MyEvent);private void MyControl_MyEvent(int value, string text)
{
throw new NotImplementedException();}