Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Page.Header Property

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

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
public:
property HtmlHead^ Header {
	HtmlHead^ get ();
}
/** @property */
public HtmlHead get_Header ()

public function get Header () : HtmlHead

Not applicable.

Property Value

An HtmlHead containing the page header.

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

The following code example demonstrates how to access the HtmlHead control programmatically using the Header property. A title element and style element are added to the head element of the page.

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

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.