Export (0) Print
Expand All

HtmlHead Class

Note: This class is new in the .NET Framework version 2.0.

Provides programmatic access to the HTML <head> element on the server.

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)

public ref class HtmlHead sealed : public HtmlGenericControl
public final class HtmlHead extends HtmlGenericControl
public final class HtmlHead extends HtmlGenericControl

The HtmlHead control provides programmatic access to the HTML <head> element on the server. The HTML <head> element is a container for additional information about the page. For more information on HTML server controls, see HTML Server Controls.

The HtmlHead control is useful for specifying page formatting information that can be accessed at run time.

The following code example demonstrates how to programmatically access the HtmlHead control to dynamically add a <title> element and a <style> element to the <head> element of the page.

No code example is currently available or this language may not be supported.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft