Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ContentPlaceHolders Property
Collapse the table of content
Expand the table of content

MasterPage.ContentPlaceHolders Property

Gets a list of ContentPlaceHolder controls that the master page uses to define different content regions.

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

[BrowsableAttribute(false)]
protected internal IList ContentPlaceHolders { get; }

Property Value

Type: System.Collections.IList
An IList of ContentPlaceHolder controls that the master page uses as placeholders for Content controls found in content pages.

Derived master page classes access the ContentPlaceHolders property to list the current ContentPlaceHolder controls that are contained by the master. Derived types do not typically override the ContentPlaceHolders property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft