System.Web.UI.MasterPage.AddContentTemplate Method

Adds a System.Web.UI.WebControls.Content control to the MasterPage.ContentTemplates dictionary.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected void AddContentTemplate (string templateName, ITemplate template)

Parameters

templateName
A unique name for the System.Web.UI.WebControls.Content.
template
The System.Web.UI.WebControls.Content.

Remarks

Derived master page classes can add System.Web.UI.WebControls.Content controls to the MasterPage.ContentTemplates dictionary using the MasterPage.AddContentTemplate(string, ITemplate) method. Derived types do not typically override the MasterPage.AddContentTemplate(string, ITemplate) method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0