System.Web.UI.HtmlControls.HtmlHead Class

Provides programmatic access to the HTML head element in server code.

See Also: HtmlHead Members

Syntax

[System.Web.UI.ControlBuilder(typeof(System.Web.UI.HtmlControls.HtmlHeadBuilder))]
public sealed class HtmlHead : HtmlGenericControl

Remarks

The HTML head element is a container that can contain additional information about the page. The System.Web.UI.HtmlControls.HtmlHead control is useful for specifying page formatting information that can be accessed at run time.

Note:

Adding styles or style rules programmatically during asynchronous postbacks is not supported. When you add AJAX capabilities to an ASP.NET Web page, asynchronous postbacks update regions of the page without updating the whole page. For more information, see ASP.NET AJAX Overview.

Requirements

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