tags:

views:

188

answers:

1

Something like this might had worked

<%= Html.RouteLink("", new { controller = "Article", action = "Details", id = A.ArticleID}, new { @class = "image-link" })%>

Except it doesnt like an empty title.

+2  A: 

This could work.

<a href="<%= Url.Action("Article", "Details", new {id = A.ArticleID}) %>">
  <img src="<% //Your image src here %>" />
</a>

Several people (my company included) have dabbled with creating something that does this in a HtmlHelper, but in the end, it seemed best to do it like this.

Dan Atkinson