To access a method from master page in the content page ensure first:
The method in master page is declared as public
than call this code from your content page code behind:
MasterPageClassName MyMasterPage = (MasterPageClassName)Page.Master;
MyMasterPage.SetMenuToRegistered();
where:
SetMenuToRegistered() - is a method positioned in the master page class.
Print | posted @ Monday, December 01, 2008 2:58 AM
I met here some useful things: