Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ContentPlaceHolder Class

Represents ContentPlaceHolder control that can be used to define placeholders within the master page.

For a list of all members of this type, see ContentPlaceHolder Members .

System.Object
   Control
      ContentPlaceHolder
         ContentPlaceHolder

[Visual Basic]
<ControlBuilder(BuilderType:=System.Web.UI.WebControls.ContentPlaceHolderBuilder)> _
<ToolboxData(Data:="<{0}:ContentPlaceHolder runat="server"></{0}:ContentPlaceHolder>")> _
<Designer(DesignerBaseTypeName:="System.ComponentModel.Design.IDesigner", DesignerTypeName:="System.Web.UI.Design.WebControls.ContentPlaceHolderDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<ToolboxItemFilter(FilterString:="System.Web.UI", FilterType:=ToolboxItemFilterType.Allow)> _
<ToolboxItemFilter(FilterString:="Microsoft.VisualStudio.Web.WebForms.MasterPageWebFormDesigner", FilterType:=ToolboxItemFilterType.Require)> _
<ToolboxItem(ToolboxItemType:=System.Web.UI.Design.WebControlToolboxItem, ToolboxItemTypeName:="System.Web.UI.Design.WebControlToolboxItem, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<Bindable(Bindable:=True, Direction:=BindingDirection.OneWay)> _
<DefaultProperty(Name:="ID")> _
<DesignerCategory(Category:="Code")> _
<Designer(DesignerBaseTypeName:="System.ComponentModel.Design.IDesigner", DesignerTypeName:="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<DesignerSerializer(SerializerTypeName:="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName:="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<Themeable(Themeable:=False)> _
<ToolboxItemFilter(FilterString:="System.Web.UI", FilterType:=ToolboxItemFilterType.Require)> _
Public Class ContentPlaceHolder
    Inherits ContentPlaceHolder
[C#]
[ControlBuilder(BuilderType=System.Web.UI.WebControls.ContentPlaceHolderBuilder)]
[ToolboxData(Data="<{0}:ContentPlaceHolder runat="server"></{0}:ContentPlaceHolder>")]
[Designer(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.WebControls.ContentPlaceHolderDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[ToolboxItemFilter(FilterString="System.Web.UI", FilterType=ToolboxItemFilterType.Allow)]
[ToolboxItemFilter(FilterString="Microsoft.VisualStudio.Web.WebForms.MasterPageWebFormDesigner", FilterType=ToolboxItemFilterType.Require)]
[ToolboxItem(ToolboxItemType=System.Web.UI.Design.WebControlToolboxItem, ToolboxItemTypeName="System.Web.UI.Design.WebControlToolboxItem, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[Bindable(Bindable=True, Direction=BindingDirection.OneWay)]
[DefaultProperty(Name="ID")]
[DesignerCategory(Category="Code")]
[Designer(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DesignerSerializer(SerializerTypeName="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[Themeable(Themeable=False)]
[ToolboxItemFilter(FilterString="System.Web.UI", FilterType=ToolboxItemFilterType.Require)]
public class ContentPlaceHolder : ContentPlaceHolder

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Any content defined within this control will be treated as a default content for the placeholder and will be rendered unless the child page overrides it by defining matching Content control.

Requirements

Namespace: Spring.Web.UI.Controls

Assembly: Spring.Web (in Spring.Web.dll)

See Also

ContentPlaceHolder Members | Spring.Web.UI.Controls Namespace