accessing the master page's methods..

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...
 
N

Nathan Sokalski

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top