My masterpage has a method which loads a usercontrol dynamically when a user clicks an imagebutton on the page. When the user clicks a button in the usercontrol, I need to raise an event which is processed by the calling page. I could have the masterpage raise the event since it knows about the usercontrol.
But I wonder if there's a way to have the user control raise the event and have the content page listen directly.
Here's a summary of the sequence of events:
user clicks image button on page
page calls masterpage method
masterpage adds usercontrol
user clicks button on user control
user control raises event or user control raises masterpage event
page captures usercontrol event or page captures masterpage event
Please let me know if it's possible to have the page capture the user control event directly.