Candor.Web.Mvc.HtmlHelperExtension.ActionImageTag C# (CSharp) Method

ActionImageTag() public static method

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.
public static ActionImageTag ( this helper, System.Web.Mvc.ActionResult result, string imageFileName, object anchorHtmlAttributes, object imageHtmlAttributes ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
result System.Web.Mvc.ActionResult An IT4MVCActionResult from a T4 MVC action method used to help build urls.
imageFileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
anchorHtmlAttributes object A dynamic object with name and value pairs for the anchor tag. Example: new {data-custom1="abc", @class="large"}
imageHtmlAttributes object A dynamic object with name and value pairs for the image tag. Example: new {data-custom1="abc", @class="large"}
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString ActionImageTag(this HtmlHelper helper, ActionResult result, string imageFileName, object anchorHtmlAttributes, object imageHtmlAttributes)
        {
            IT4MVCActionResult t4 = result.GetT4MVCResult();
            return ActionImageTag(helper, t4.Action, t4.Controller, imageFileName, t4.RouteValueDictionary, anchorHtmlAttributes, imageHtmlAttributes);
        }

Same methods

HtmlHelperExtension::ActionImageTag ( this helper, string action, string controllerName, string imageFileName ) : System.Web.Mvc.MvcHtmlString
HtmlHelperExtension::ActionImageTag ( this helper, string action, string controllerName, string imageFileName, object routeValues ) : System.Web.Mvc.MvcHtmlString
HtmlHelperExtension::ActionImageTag ( this helper, string action, string controllerName, string imageFileName, object routeValues, object anchorHtmlAttributes, object imageHtmlAttributes ) : System.Web.Mvc.MvcHtmlString