System.Web.UI.HtmlControls.HtmlHead Class

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

See Also: HtmlHead Members


public sealed class HtmlHead : HtmlGenericControl


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.


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.


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