tags:

views:

27

answers:

1

Does anyone know of a decent way to cleanly use Html.ActionLink helper with an image instead of text without going through a huge amount of replace scripts and the like?

+2  A: 
<a href="<%= ${Url.Action("myaction") %>"><img src="img.gif"/></a>
queen3
That doesn't let me specify anything that the ActionLink helper does, though, like the object to pass through.
Stacey
Wait, I see it now. What is the ${ for though?
Stacey
Oops, that's my Spark View Engine background; ${} is used instead of <%= %> there ;-)
queen3