How To Use ToolTip Control In Asp.Net C#

Use ToolTip Control 

The ToolTip property is used to set or return the text that appears when the user rests the mouse pointer over a control.


                       HTML CODING

<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
           <asp:Image ID="Image1" runat="server" ImageUrl="~/Baloon.jpg" ToolTip="BALOON" Width="200px" />
               <asp:Image ID="Image2" runat="server" ImageUrl="~/horse.jpg" ToolTip="HORSE" Width="200px" />
               <asp:Image ID="Image3" runat="server" ImageUrl="~/Tiger.jpg" ToolTip="TIGER" Width="200px" />
                   <asp:Image ID="Image4" runat="server" ImageUrl="~/Rose.jpg" ToolTip="ROSE" Width="200px" />


First - Add New WebForm - Select Image Controls 

Next - Select Image control - Property - Image Url

Next - Select Anyone Image From - Content Of Folder

Set the Image All Image Controls

Next - Select - Image - Property - ToolTip Give Name

Next - Select - Image - Property - ToolTip Give Name
For All Image Set ToolTip

Next - Run [F5] - Cursor Go - To Any Image - Display ToolTip Name


Post a Comment