HtmlAnchor.Title Property
Gets or sets the ToolTip text displayed when the mouse pointer is placed over the HtmlAnchor control.
[Visual Basic] Public Property Title As String [C#] public string Title {get; set;} [C++] public: __property String* get_Title(); public: __property void set_Title(String*); [JScript] public function get Title() : String; public function set Title(String);
Property Value
The text displayed when the mouse pointer is placed over the HtmlAnchor control.
Remarks
Use this property to provide a custom ToolTip for the HtmlAnchor control. This text is displayed when the mouse pointer rests over control.
Example
[Visual Basic, C#, JScript] The following example demonstrates how to use the Title property to provide custom text for the ToolTip.
[Visual Basic] <%@ Page Language="VB" AutoEventWireup="True" %> <html> <body> <form method=post runat=server> <a HRef="http://www.microsoft.com" Title="Site One" runat=server> Enter site.</a> </form> </body> </html> [C#] <%@ Page Language="C#" AutoEventWireup="True" %> <html> <body> <form method=post runat=server> <a HRef="http://www.microsoft.com" Title="Site One" runat=server> Enter site.</a> </form> </body> </html> [JScript] <%@ Page Language="JScript" AutoEventWireup="True" %> <html> <body> <form method=post runat=server> <a HRef="http://www.microsoft.com" Title="Site One" runat=server> Enter site.</a> </form> </body> </html>
[C++] No example is available for C++. To view a Visual Basic, C#, or JScript example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
HtmlAnchor Class | HtmlAnchor Members | System.Web.UI.HtmlControls Namespace