Image equivalent of ActionLink in ASP.NET MVC

Posted by Jason Whitehorn on Stack Overflow See other posts from Stack Overflow or by Jason Whitehorn
Published on 2008-10-17T00:05:45Z Indexed on 2010/05/06 5:38 UTC
Read the original article Hit count: 165

Filed under:
|

In ASP.NET MVC is there an equivalent of the Html.ActionLink helper for Img tags?

I have a controller action that outputs a dynamically generated JPEG and I wanted to use the same Lambda expressions to link to it as I do HREFs using ActionLink.

Alternatively, a helper that just gives the URL to a route (again specified using Lambdas) would also be acceptable.

EDIT: I had originally specified that I was using Preview 5, however I see that a Beta has been released. So all-in-all the version number was an unneeded piece of info as I may be upgrading soon :-)

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing