1<?xml version="1.0" encoding="utf-8"?> 2<Type Name="ContentPlaceHolder" FullName="System.Web.UI.WebControls.ContentPlaceHolder"> 3 <TypeSignature Language="C#" Value="public class ContentPlaceHolder : System.Web.UI.Control, System.Web.UI.INamingContainer" /> 4 <AssemblyInfo> 5 <AssemblyName>System.Web</AssemblyName> 6 <AssemblyVersion>2.0.0.0</AssemblyVersion> 7 </AssemblyInfo> 8 <Base> 9 <BaseTypeName>System.Web.UI.Control</BaseTypeName> 10 </Base> 11 <Interfaces> 12 <Interface> 13 <InterfaceName>System.Web.UI.INamingContainer</InterfaceName> 14 </Interface> 15 </Interfaces> 16 <Attributes> 17 <Attribute> 18 <AttributeName>System.Web.UI.ControlBuilder(typeof(System.Web.UI.WebControls.ContentPlaceHolderBuilder))</AttributeName> 19 </Attribute> 20 <Attribute> 21 <AttributeName>System.Web.UI.ToolboxData("<;{0}:ContentPlaceHolder runat=&quot;server&quot;></{0}:ContentPlaceHolder>")</AttributeName> 22 </Attribute> 23 <Attribute> 24 <AttributeName>System.ComponentModel.Designer("System.Web.UI.Design.WebControls.ContentPlaceHolderDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")</AttributeName> 25 </Attribute> 26 <Attribute> 27 <AttributeName>System.ComponentModel.ToolboxItemFilter("System.Web.UI", System.ComponentModel.ToolboxItemFilterType.Allow)</AttributeName> 28 </Attribute> 29 <Attribute> 30 <AttributeName>System.ComponentModel.ToolboxItemFilter("Microsoft.VisualStudio.Web.WebForms.MasterPageWebFormDesigner", System.ComponentModel.ToolboxItemFilterType.Require)</AttributeName> 31 </Attribute> 32 </Attributes> 33 <Docs> 34 <since version=".NET 2.0" /> 35 <remarks> 36 <attribution license="cc4" from="Microsoft" modified="false" /> 37 <para>A <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> control defines a relative region for content in a master page, and renders all text, markup, and server controls from a related <see cref="T:System.Web.UI.WebControls.Content" /> control found in a content page.</para> 38 <para>A <see cref="T:System.Web.UI.WebControls.Content" /> control is associated with a <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> using its <see cref="P:System.Web.UI.WebControls.Content.ContentPlaceHolderID" /> property. Set the <see cref="P:System.Web.UI.WebControls.Content.ContentPlaceHolderID" /> property to the value of the <see cref="P:System.Web.UI.Control.ID" /> property of the related <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> control in a master page. More than one <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> can be declared in a master page. </para> 39 <para>Within a content page, only one <see cref="T:System.Web.UI.WebControls.Content" /> control can supply the content for a <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> in the master page. However, in each content page that uses a master page, you can have separate <see cref="T:System.Web.UI.WebControls.Content" /> controls associated with the <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" />. For example, you can define the <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> for the page title in a master page. For each content page that uses the master page, you can add a <see cref="T:System.Web.UI.WebControls.Content" /> control that supplies the text and markup for the page title. </para> 40 <block subset="none" type="note"> 41 <para>For XHTML compliance, an empty title element is created if a title has not been defined or cannot be found.</para> 42 </block> 43 <para>You can specify default content placed within the <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> control tags, but this content is replaced by any content in an associated content page. </para> 44 <para>For more information about master pages and content pages, see <format type="text/html"><a href="0852291d-6f62-4e9f-a809-45cc81e78d6b">ASP.NET Master Pages</a></format>.</para> 45 <format type="text/html"> 46 <a href="#DeclarativeSyntax" /> 47 </format> 48 <format type="text/html"> 49 <h2>Declarative Syntax</h2> 50 </format> 51 <code><asp: ContentPlaceHolder 52 EnableViewState="True|False" 53 ID="string" 54 OnDataBinding="DataBinding event handler" 55 OnDisposed="Disposed event handler" 56 OnInit="Init event handler" 57 OnLoad="Load event handler" 58 OnPreRender="PreRender event handler" 59 OnUnload="Unload event handler" 60 runat="server" 61 Visible="<codeFeaturedElement>True</codeFeaturedElement>|False" 62> 63 <!-- child controls --> 64</asp:ContentPlaceHolder></code> 65 </remarks> 66 <summary> 67 <attribution license="cc4" from="Microsoft" modified="false" /> 68 <para>Defines a region for content in an ASP.NET master page.</para> 69 </summary> 70 </Docs> 71 <Members> 72 <Member MemberName=".ctor"> 73 <MemberSignature Language="C#" Value="public ContentPlaceHolder ();" /> 74 <MemberType>Constructor</MemberType> 75 <Parameters /> 76 <Docs> 77 <remarks>To be added.</remarks> 78 <since version=".NET 2.0" /> 79 <summary> 80 <attribution license="cc4" from="Microsoft" modified="false" /> 81 <para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ContentPlaceHolder" /> class. </para> 82 </summary> 83 </Docs> 84 <AssemblyInfo> 85 <AssemblyVersion>2.0.0.0</AssemblyVersion> 86 </AssemblyInfo> 87 </Member> 88 </Members> 89</Type>