MobilePage.MasterPageFile Property

This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the file name of the master page. Master pages are not supported in ASP.NET mobile Web Forms pages.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[BindableAttribute(false)] 
public:
virtual property String^ MasterPageFile {
	String^ get () override sealed;
	void set (String^ value) override sealed;
}
/** @property */
public final String get_MasterPageFile ()

/** @property */
public final void set_MasterPageFile (String value)

public override final function get MasterPageFile () : String

public override final function set MasterPageFile (value : String)

Not applicable.

Property Value

a null reference (Nothing in Visual Basic).

Exception typeCondition

NotSupportedException

An attempt was made to set this property. Master pages are not supported on mobile pages.

This member overrides Page.MasterPageFile to prevent master pages from being used. This is because master pages are not supported on ASP.NET mobile Web Forms pages.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: