Holds text, markup, and server controls to render to a System.Web.UI.WebControls.ContentPlaceHolder control in a master page.
See Also: Content Members
A System.Web.UI.WebControls.Content control is a container for the content and controls of a content page. A System.Web.UI.WebControls.Content control is used only with a master page that defines a corresponding System.Web.UI.WebControls.ContentPlaceHolder control. A System.Web.UI.WebControls.Content control is not added to the control hierarchy at runtime. Instead, the contents within the System.Web.UI.WebControls.Content control are directly merged into the corresponding System.Web.UI.WebControls.ContentPlaceHolder control.
The System.Web.UI.WebControls.Content control is associated with a System.Web.UI.WebControls.ContentPlaceHolder using its Content.ContentPlaceHolderID property. Set the Content.ContentPlaceHolderID property to the value of the System.Web.UI.Control.ID property of a System.Web.UI.WebControls.ContentPlaceHolder 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 System.Web.UI.WebControls.Content control are rendered to the System.Web.UI.WebControls.ContentPlaceHolder 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.
Example
<asp:Content ContentPlaceHolderID="string" EnableViewState="