I have MainLayout.master that has UC_Menu.ascx on it.
I have a page named Customer.aspx that uses MainLayout.master. Customer.aspx also contains a UserControl named UC_Details.ascx.
How can I have UC_Menu.ascx call a function that is in UC_Details.ascx with this scenario?
I’ve seen a few similar examples, but none that match this type of layout.
In my opinion you should raise event from UC_Menu.ascx, then handle it in Master page and raise event again from Master page already. Finally you can intercept event with event handler in Customer.aspx and call function from UC_Details.ascx.
So, the code for this issue should be:
1) Inside your UC_Menu.ascx.vb raise an event:
2) In Master page catch event and raise it to Customer.aspx
3) Define in Customer.aspx markup after page directive:
4) Inside UC_Details.ascx.vb define some method that should be called:
5) Place into Customer.aspx.vb: