Вы можете использовать Url.Action () для генерации ссылки или создать собственный вспомогательный метод, подобный этому:
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 }) %>