Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: ASP.NET image maps


Message #1 by "John Tyson" <jtyson@t...> on Thu, 25 Jul 2002 08:14:06 -0700
Hi,

I currently have the following image map in standard ASP (I've
abbreviated the cords since they are extensive):

<map name=3D3D"coveragemap" id=3D3D"coveragemap">
  <area shape=3D"poly" href=3D"stateindex.asp?st=3D3" tabindex=3D"2"
coords=3D"28,63,...,28,63" alt=3D"Oregon Locations">
  <area shape=3D"poly" href=3D"stateindex.asp?st=3D3" tabindex=3D"5"
coords=3D"147,20,...,147,20" alt=3D"Montana Locations">
  <area shape=3D"poly" href=3D"stateindex.asp?st=3D4" tabindex=3D"3"
coords=3D"12,143,...,12,143" alt=3D"California Locations"> ... </map> 
<img
src=3D"graphics/westernUS.jpg" height=3D"331" width=3D"300"
usemap=3D"#coveragemap" alt=3D"Locations">

By clicking on a state, the user is sent to a page for that state, which
lists all locations in that state based on a querystring that is passed
to the page and then sent to a stored procedure.

I would like to implement this using an asp:Image web control in
asp.net.  Can this be done?  I have used asp:ImageButton to create a
quick and dirty image map, but I don't know how to deal with/create
clickable areas other than rectangular with (if x > 100 and y > 100
then...)

Thanks,

John

  Return to Index