views:

49

answers:

3

I have an ASP.NET Label. I want to display a message after hovering the mouse over the label.

How can I do that?

A: 

I'm not sure about how to do it specifically with a label, but see if you can use the abbr tag. This will display some text but will display different text when hovered over.

Matthew Steeples
+3  A: 

You can use the tooltip attribute of the asp label.

<asp:Label id="label1" ToolTip="Text on mouse over" runat="server">My label</asp:Label>
rahul
A: 

You can set the Tooltip attribute like so:

<asp:Label ToolTip="A nice tooltip!" runat="server">Something</asp:Label>
Fabian