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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top