Action Image MVC3 Razor

asked15 years ago
last updated13 years ago
viewed133.9k times
Up Vote119Down Vote

What is the best way to replace links with images using Razor in MVC3. I simply doing this at the moment:

<a href="@Url.Action("Edit", new { id=MyId })"><img src="../../Content/Images/Image.bmp", alt="Edit" /></a>

Is there a better way?