You can use Url.Action () to create a link, or you can create a custom helper method, for example:
public static class HtmlHelpers {
public static MvcHtmlString ActionLinkWithTitle(this HtmlHelper helper,
string linkText,
string actionName,
object routeValues) {
return helper.ActionLink(linkText, actionName, routeValues,
new {title = Url.Action(linkText, actionName, routevalues )
}
}
ActionLinkHelper,
<%= Html.ActionLinkWithTitle(@testrun.Name, "Download", "Trx",
new { path = @testrun.TrxPath }) %>