Tuesday, 29 July 2014

How to use tool tip (ToolTip) in ASP.Net Label

  1. <%@ Page Language=“C#” %>
  2. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
  3. <script runat=“server”>
  4. </script>
  5. <html xmlns=“http://www.w3.org/1999/xhtml”>
  6. <head id=“Head1″ runat=“server”>
  7.     <title>How to use tool tip (ToolTip) in Label</title>
  8. </head>
  9. <body>
  10.     <form id=“form1″ runat=“server”>
  11.     <div>
  12.         <h2 style=“color:Navy”>Label Example: ToolTip</h2>
  13.         <asp:Label
  14.              ID=“Label1″
  15.              runat=“server”
  16.              ForeColor=“OrangeRed”
  17.              BackColor=“LightCyan”
  18.              Font-Size=“X-Large”
  19.              Text=“DodgerBlue”
  20.              ToolTip=“Color label”
  21.              >
  22.         </asp:Label>
  23.         <br /><br />
  24.         <asp:Label
  25.              ID=“Label2″
  26.              runat=“server”
  27.              ForeColor=“Snow”
  28.              BackColor=“DarkCyan”
  29.              Font-Size=“X-Large”
  30.              Text=“XmlDataSource”
  31.              ToolTip=“asp.net control”
  32.              >
  33.         </asp:Label>
  34.     </div>
  35.     </form>
  36. </body>
  37. </html>




No comments:

Post a Comment