ASP.NET: how to set area href in page template?

Hi there!

On my ASP.NET web site I use a page template. On that template there is a map with an area definition like in the code snippet.

The problem is that the url for that link is fixed and that causes problems when I have pages with that template on a different directory level.

Any idea how I can solve that problem?


<map name="BannerMap" id="BannerMap">
  <area shape="rect" coords="360,183,451,214" href="mylink.aspx" />

Open in new window

Who is Participating?
SoLostConnect With a Mentor Commented:
Or give the href a non-relative path


/mylink.aspx   instead of mylink.aspx
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.