views:

80

answers:

3

i am created images on the fly in my controller (bitmaps, pngs, gif) and sending them down to the view. Is there anyway to embed hyperlinks into an image ?

+2  A: 

No, there is no way to embed hyperlinks into images.

drlouie - louierd
+1  A: 

Can't you just wrap the image with an anchor?

<a href="/controller/action/123">
    <img src="/controller/dynamicimage/123" alt="" />
</a>

A html helper method extension might be useful here to generate previous markup.

Darin Dimitrov
i dont understand this response . . i need links within the image like an image map . .
ooo
+2  A: 

Html ImageMaps is the closest you can get.

Chris Lively