Example #1
0
 /// <summary>
 /// Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.
 /// </summary>
 /// <param name="helper">The class being extended with this method.</param>
 /// <param name="action">The action method to navigate to when the image link is clicked.</param>
 /// <param name="controllerName">The controller containing the action method to navigate to when the image link is clicked.</param>
 /// <param name="imageFileName">The file name of the image including full relative path.  Recommend coming from T4MVC Links property.</param>
 /// <param name="routeValues">Any extra route values required by the action method. Example:  new {id=5}</param>
 public static MvcHtmlString ActionImageTag(this HtmlHelper helper, string action, string controllerName, string imageFileName, object routeValues)
 {
     return(helper.ActionImageTag(action, controllerName, imageFileName, routeValues, null, null));
 }