Tuesday, September 13, 2011

Accessing Master Page function from Child Page.

ClassName MasterPage = (ClassName)Page.Master;
MasterPage.MasterMethod();

 Replace the ClassName with the name of your code-behind class, and MasterMethod() with the name of the master page method you will be accessing.

No comments:

Post a Comment