In my ASP.NET app I have a control in the master page that raises an event Foo on certain occasions / interactions.
I also have a couple of pages that have another control that must re-bind itself when this event is fired.
Unfortunately the only way I can see them communicating between each other is by creating a long event chain (deriving a new MasterPage MasterPageSuperDuper, attaching an event handler to Foo‘s event in the user control, and then referring to this event in the masterpage from the control present in a couple of pages – basically using the masterpage as a control center).
Is it possible to raise an event the page control can see without getting the masterpage involved?
Here we go.
Create an Interface, put in app_code folder
PageControl Implement Interface
In your Control on the masterpage
Let me know if it works.