开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜