accessing the master page's methods..

  • Thread starter Thread starter Ned White
  • Start date Start date
N

Ned White

Hi,

How can I access the Master Page's public methods from a web user control ?

Inside the user control, i can see the Page.Master using the
this.Page.Master.
However it does not seem to be able to identify the Master page class and
cannot access the master page's public methods....

Thanks...
 
In the content page, include an @MasterType directive. This will cause the
..Master property to be automatically cast to the correct type so that you
can access any of it's methods and/or properties.
 
Back
Top