RectangleHotSpot for asp ImageMap : RectangleHotSpot « Asp Control « ASP.Net






RectangleHotSpot for asp ImageMap

<%@ Page Language="C#" %>
<html>
<head>
    <title>ImageMap Navigate</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <asp:ImageMap
        id="mapNavigate"
        width="300"
        height="300"
        ImageUrl="http://www.java2s.com/style/logo.png"
        Runat="server">
        <asp:RectangleHotSpot
            NavigateUrl="Home.aspx" 
            Left="0"
            Top="0"
            Right="100"
            Bottom="50" 
            AlternateText="Navigate to Home" />
        <asp:RectangleHotSpot
            NavigateUrl="http://www.java2s.com" 
            Left="100"
            Top="0"
            Right="200"
            Bottom="50" 
            AlternateText="Navigate to Products" />
        <asp:RectangleHotSpot
            NavigateUrl="http://www.google.ca" 
            Left="200"
            Top="0"
            Right="300"
            Bottom="50" 
            AlternateText="Navigate to Services" />
    </asp:ImageMap>
    
    </div>
    </form>
</body>
</html>

           
       








Related examples in the same category