System.Web.UI.Page.Master Property

Gets the master page that determines the overall look of the page.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public MasterPage Master { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Page.Master property returns the System.Web.UI.MasterPage object associated with this page. This property is read-only; however, you can set properties on the System.Web.UI.MasterPage object it returns.

The Page.Master property is valid only on pages that reference a master page in the Page.MasterPageFile property. If you access the Page.Master property on a page that does not reference a master page, null is returned. The contents of a master page are not available until after the Page.PreInit event has been raised.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0