Export (0) Print
Expand All

Page.Title Property

Gets or sets the title for the page.

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

[BindableAttribute(true)] 
[LocalizableAttribute(true)] 
public string Title { get; set; }
/** @property */
public String get_Title ()

/** @property */
public void set_Title (String value)

public function get Title () : String

public function set Title (value : String)

Not applicable.

Property Value

The title of the page.

Exception typeCondition

InvalidOperationException

The Title property requires a header control on the page.

Use the Title property to set the page title in the HTML header sent to the requesting browser.

Note   The page must contain a <head> element with the attribute runat="server", otherwise the title will not render.

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

Community Additions

ADD
Show:
© 2014 Microsoft