System.Web.UI.Page.Header Property

Gets the document header for the page if the head element is defined with a runat=server in the page declaration.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.HtmlControls.HtmlHead Header { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Page.Header property gets a reference to an System.Web.UI.HtmlControls.HtmlHead object that you can use to set document header information for the page. The System.Web.UI.HtmlControls.HtmlHead allows you to add information such as style sheets, style rules, a title, and metadata to the head element.

Note:

Adding styles programmatically using the methods of the System.Web.UI.IStyleSheet interface during asynchronous postbacks is not supported. When you add AJAX capabilities to a 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
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0