Events from a User Controls on a Master handled on a Content Page.

Mar 26 2008 12:52 PM
I'm trying to handle an event that is fired from a user control (on a master page) by the content page.  The general layout is: A master page called Company.master, a nested master page called Department.master with a user control, EmployeeUserControl.ascx that contains a drop down called EmployeeDropDown.  The content page is EmployeeDetails.aspx.  I'd like the content page to handle the event raised by the EmployeeDropDown(it would display the details about the employee selected from the dropdown).  I was able to get this to work when the dropdown was on the Deptartment.master page(hard coded), but I would like to factor out the dropdown.  Also the delegate is UserSelectEventHandler(named: SelectOptions in the classes) and the args are UserSelectEventArgs(inherits EventArgs).

I tried making a property on Department.master that returns the UserControl and then typecasting to EmployeeUserControl, but the content page is throwing an error saying I am missing a reference or assembly.

I have source if it might help.
(edit to add more info)