Answer:
By overrriding the PrePageExecute Method you can subscribe to the page's InitComplete Event and inject dependencies into any UserControl's found on the page at that time. Since the MasterPage is a UserControl, this includes the MasterPage as well if there is one.
Asked In: Many Interviews |
Alert Moderator