First of all, when working with MasterPages its more useful to refer to a
"Content Page" rather than "base page class A."
Secondly, we strongly type the Master by including the following in a
content page...
<%@ MasterType VirtualPath="~/Masters/Whatever.master" %>
We can then access controls in the MasterPage using one of two techniques:
* Early Bound: properties
* Late Bound: FindControl method
I really haven't tried to reuse a variable declared in the MasterPage from a
Content Page.
<%= Clinton Gallagher
"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
I have a base page class A which inherits System.Web.UI.Page class
then a aspx page B inherits class A and have a master page C.
There is a property D (a string variable) in the master page C.
How can I access the property D from the base page class A?
PS: I know how to use reflection to access control of master page C from
the base class A.