Page.Master Property
.NET Framework 3.0
Gets the master page that determines the overall look of the page.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Page Members
System.Web.UI Namespace
MasterPageFile
Assembly: System.Web (in system.web.dll)
The Master property returns the MasterPage object associated with this page. This property is read-only; however, you can set properties on the MasterPage object it returns.
The Master property is valid only on pages that reference a master page in the MasterPageFile property. If you access the Master property on a page that does not reference a master page, a null reference (Nothing in Visual Basic) is returned. The contents of a master page are not available until after the PreInit event has been raised.
| Topic | Location |
|---|---|
| How to: Reference ASP.NET Master Page Content | Building ASP .NET Web Applications |
| How to: Reference ASP.NET Master Page Content | Building ASP .NET Web Applications |
| Walkthrough: Creating and Using ASP.NET Master Pages in Visual Web Developer | Building ASP .NET Web Applications in Visual Studio |
| How to: Reference ASP.NET Master Page Content |
Reference
Page ClassPage Members
System.Web.UI Namespace
MasterPageFile
Other Resources
ASP.NET Master Pages OverviewCommunity Additions
ADD
Show: