|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Reference a master page from a Web Control...Hi,
I'm building a web control and I need to reference a Master Page's Method and I can't find how to do it. Here's what I do ((mymaster)Page.Master).MyMethod(Params); I also tried: ((ASP.masterpages_mymaster)Page.Master).MyMethod(Params); Nothing works... I tried googling about it, but found nothing relevant. Can somebody help me please? Thanks ThunderMusic I've just tried exactly that in test project and it worked!
You can download it here http://www.bluejumper.com/downloads/tester.zip Are you sure you are referencing the master page correctly? Do you get an error? Fran http://www.bluejumper.com |
|||||||||||||||||||||||