Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accessing the master page's methods..

0 views
Skip to first unread message

Ned White

unread,
May 11, 2008, 9:11:29 PM5/11/08
to
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...


Nathan Sokalski

unread,
May 11, 2008, 9:19:59 PM5/11/08
to
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
njsok...@hotmail.com
http://www.nathansokalski.com/

"Ned White" <nedwhite@> wrote in message
news:%23tmGB18...@TK2MSFTNGP03.phx.gbl...

0 new messages