By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,799 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,799 IT Pros & Developers. It's quick & easy.

accessing the master page's methods..

P: n/a
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...
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Ned White" <nedwhite@wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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...


Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.