how to use reflection on a master page?
I want to invoke a masterPage's method from a inner user-control (user control inside another user-control).
The thing is that the inner control doesn't开发者_StackOverflow know the type of its master page at compile time. How can I use reflection on the master page to find a specific method and invoke it?
Thanks
Instead of using reflection you could solve this by using an interface. Define an interface for whatever the user control needs are and then implement it in the master page.
精彩评论