Click here to Skip to main content
12,884,771 members (30,374 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET

i am using ImageMap control, in this control i am displaying one map.. and i am not know how to get the co-ordinates of regions in the map.

(example: i am taking India map, if i click on one state then that state name is displayed)

How can i know the coordinates of each region?

my code like:

<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="images/ImageMap1.jpg">
             <asp:PolygonHotSpot Coordinates="" PostBackValue="Test"  />

Posted 22-Jan-13 2:33am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You need to define co-ordinates for every hotspot you define.
<asp:CircleHotSpot PostBackValue="Jupiter"
                   X="410" Y="172" Radius="55"
                   HotSpotMode="PostBack" />

Refer: A Quick Start Lesson to the ASP.NET ImageMap Control[^]
Using ASP.NET ImageMap Control [^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100