System.Web 2.0.0.0 System.Web.UI.Control System.Web.UI.INamingContainer System.Web.UI.ControlBuilder(typeof(System.Web.UI.WebControls.ContentBuilderInternal)) System.ComponentModel.Designer("System.Web.UI.Design.WebControls.ContentDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner") System.ComponentModel.ToolboxItem(false) A control is a container for the content and controls of a content page. A control is used only with a master page that defines a corresponding control. A control is not added to the control hierarchy at runtime. Instead, the contents within the control are directly merged into the corresponding control. The control is associated with a using its property. Set the property to the value of the property of a control in a master page. When the URL of the content page is called, all text, markup, and server controls that are contained within the control are rendered to the on the master page, and the address bar of the browser will show the name of the content page. For more information about master pages and content pages, see ASP.NET Master Pages Overview.

Declarative Syntax

<asp:Content     ContentPlaceHolderID="string"     EnableViewState="True|False"     ID="string"     runat="server">     Visible="True|False"         <!-- child controls --> </asp:Content>
Holds text, markup, and server controls to render to a control in a master page.
Constructor The control typically is created declaratively, not programmatically. For an example, see . Initializes a new instance of the class. 2.0.0.0 Property System.Web.UI.IDReferenceProperty(typeof(System.Web.UI.WebControls.ContentPlaceHolder)) System.ComponentModel.DefaultValue("") System.Web.UI.Themeable(false) System.String To be added. All content that is encapsulated by the control renders within the referenced control in a master page. A control is not added to the control hierarchy at runtime. This property cannot be set by themes or style sheet themes. For more information, see and ASP.NET Themes Overview. Gets or sets the ID of the control that is associated with the current content. 2.0.0.0 Event System.ComponentModel.Browsable(false) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.EventHandler The event is never invoked and does not appear in visual designers. Occurs when the control binds to a data source. 2.0.0.0 Event System.ComponentModel.Browsable(false) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.EventHandler The event is never invoked and does not appear in visual designers. Occurs when the control is released from memory. 2.0.0.0 Event System.ComponentModel.Browsable(false) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.EventHandler The event is never invoked and does not appear in visual designers. Occurs when the control is initialized. 2.0.0.0 Event System.ComponentModel.Browsable(false) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.EventHandler The event is never invoked and does not appear in visual designers. Occurs when the server control is loaded into the control. 2.0.0.0 Event System.ComponentModel.Browsable(false) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.EventHandler The event is never invoked and does not appear in visual designers. Occurs when the server control is about to render to its containing control. 2.0.0.0 Event System.ComponentModel.Browsable(false) System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.EventHandler The event is never invoked and does not appear in visual designers. Occurs when the server control is unloaded from memory. 2.0.0.0