Home All Groups Group Topic Archive Search About

Reference a master page from a Web Control...

Author
28 Sep 2007 2:12 PM
ThunderMusic
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

Author
29 Sep 2007 1:56 PM
BlueJumper.com
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

AddThis Social Bookmark Button