ASP.NET(vb.net) & ImageMap - asp:ImageMap - asp:ImageMap : Use the ImageMap control to create an image that contains defined hotspot regions.
ShotDev Focus:
- ASP.NET(vb.net) & ImageMap - asp:ImageMap
Tag Control :
<asp:ImageMap id="ImageMap1" HotSpotMode="PostBack" ImageUrl="Path of images" runat="server">
Example
ImageMap.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub ImageMap1_Click(sender As Object, e As ImageMapEventArgs) Me.lblText1.Text = e.PostBackValue End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:ImageMap id="ImageMap1" onclick="ImageMap1_Click" runat="server" HotSpotMode="PostBack" Width="300" ImageUrl="Myfiles/mygirl.jpg"> <asp:RectangleHotSpot Top="0" Bottom="225" Left="0" Right="150" AlternateText="Title 1" PostBackValue="Select 1" /> <asp:RectangleHotSpot Top="0" Bottom="225" Left="151" Right="300" AlternateText="Title 2" PostBackValue="Select 2" /> </asp:ImageMap> <hr /> <asp:Label id="lblText1" runat="server"></asp:Label> </form> </body> </html>
Screenshot