HtmlTitle::Text Property

 

Gets or sets the text of the HTML <title> element.

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

public:
[PersistenceModeAttribute(PersistenceMode::InnerDefaultProperty)]
property String^ Text {
	virtual String^ get();
	virtual void set(String^ value);
}

Property Value

Type: System::String^

The text of the HTML <title> element. The default value is an empty string ("").

Use the Text property to specify or determine the title of the Web page.

The following code example demonstrates using the Text property of an HtmlTitle control to dynamically change the title of a Web page.

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

.NET Framework
Available since 2.0
Return to top
Show: