ASP.NET ToolTip Property

Definition and Usage

The ToolTip property is used to set or return the text displayed when the mouse hovers over a control.

Syntax

<asp:webcontrol id="id" ToolTip=""string" runat="server" />
Value Description
string The text displayed when the mouse hovers over a control.

Example

This example sets the tooltip text for the button control:

<form runat="server">
<asp:Button id="button1" Text="Submit" runat="server"
ToolTip="This is an example-button" />
</form>

Example

Add ToolTip to button control