By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,901 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

what namespace (or GUI toolbar in VS 2003) is imagemap hotspot under?

P: n/a
I found some info on creating an imagemap in .NET at

http://msconline.maconstate.edu/Tuto...pnet05-04.aspx

but in VS.NET I don't see any ImageMap object under
System.Web.UI.WebControls
or any ImageMap control on the Web Forms toolbox (just Image and Image
Button).

If I try pasting code such as below, .NET does not recognize the
ImageMap object.

Can someone explain how to add this?

Thanks!
<asp:ImageMap ID="ImageMap1" Runat="Server"
ImageUrl="ImageMap.jpg"
AlternateText="Web search image map"
HotSpotMode="Navigate">

<asp:RectangleHotSpot
AlternateText="Go to Google"
Left="49"
Top="36"
Right="216"
Bottom="148"
NavigateUrl="http://www.google.com"
Target="_blank"/>

<asp:CircleHotSpot
AlternateText="Go to AltaVista"
X="368"
Y="200"
Radius="76"
NavigateUrl="http://www.altavista.com"
Target="_blank"/>

<asp:PolygonHotSpot
AlternateText="Go to Yahoo"
Coordinates="143,187, 237,249, 222,333, 107,333, 76,254"
NavigateUrl="http://www.yahoo.com"
Target="_blank"/>

</asp:ImageMap>

Jun 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It's only supported in ASP.NET 2.0. VS 2003 does not do the job...

Mad Scientist Jr wrote:
I found some info on creating an imagemap in .NET at

http://msconline.maconstate.edu/Tuto...pnet05-04.aspx

but in VS.NET I don't see any ImageMap object under
System.Web.UI.WebControls
or any ImageMap control on the Web Forms toolbox (just Image and Image
Button).

If I try pasting code such as below, .NET does not recognize the
ImageMap object.

Can someone explain how to add this?

Thanks!
<asp:ImageMap ID="ImageMap1" Runat="Server"
ImageUrl="ImageMap.jpg"
AlternateText="Web search image map"
HotSpotMode="Navigate">

<asp:RectangleHotSpot
AlternateText="Go to Google"
Left="49"
Top="36"
Right="216"
Bottom="148"
NavigateUrl="http://www.google.com"
Target="_blank"/>

<asp:CircleHotSpot
AlternateText="Go to AltaVista"
X="368"
Y="200"
Radius="76"
NavigateUrl="http://www.altavista.com"
Target="_blank"/>

<asp:PolygonHotSpot
AlternateText="Go to Yahoo"
Coordinates="143,187, 237,249, 222,333, 107,333, 76,254"
NavigateUrl="http://www.yahoo.com"
Target="_blank"/>

</asp:ImageMap>


Jun 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.