System.Web.UI.WebControls Namespace WebControl Class
Sets or retrieves advisory information for the Web control.
Inline |
<asp:control ToolTip = strToolTip ... > |
Script |
WebControl.ToolTip [ = strToolTip ] |
sToolTip |
String of advisory text for the object. |
This property is read/write with no default value.
Microsoft® Internet Explorer® renders the ToolTip when the user hovers the mouse over the object.
NOTE: The ToolTip property is rendered as an HTML 4.0 title attribute. As such, it may not work in downlevel browser versions.
The following sample illustrates using the ToolTip property.
<asp:button text = "Click Me" runat = "server"
tooltip = "Click me if you are happy" />
Show me
WebControl Members Base Web Control Properties