Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPWeb.MasterUrl property

Gets or sets the URL of the master page that is used for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallablePropertyAttribute]
public string MasterUrl { get; set; }

Property value

Type: System.String
A string that contains the URL of the master page.

At runtime, the value in this property replaces the ~masterurl/default.master token in content pages.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.