Candor.Web.Mvc.MvcTagHtmlHelperExtension.BeginActionLink C# (CSharp) Method

BeginActionLink() public static method

Begins a new action link. For use in a using statement, allowing other code inside the tag.
public static BeginActionLink ( this htmlHelper, string actionName, string controllerName, RouteValueDictionary routeValues, object>.IDictionary htmlAttributes ) : MvcTag
htmlHelper this
actionName string
controllerName string
routeValues RouteValueDictionary
htmlAttributes object>.IDictionary
return MvcTag
        public static MvcTag BeginActionLink(this HtmlHelper htmlHelper, string actionName, string controllerName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes)
        {
            string hrefUrl = UrlHelper.GenerateUrl(null, actionName, controllerName, routeValues, htmlHelper.RouteCollection, htmlHelper.ViewContext.RequestContext, true);
            //This uses MVC2 helper below instead of MVC3 HtmlHelper.AnonymousObjectToHtmlAttributes because it is not as defensive...
            RouteValueDictionary attrs = htmlHelper.AnonymousObjectToHtmlAttributesMvc2(htmlAttributes);
            attrs.Add("href", hrefUrl);
            return BeginTag(htmlHelper, "a", attrs);
        }

Same methods

MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, System.Web.Mvc.ActionResult result, object>.IDictionary htmlAttributes ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, System.Web.Mvc.ActionResult result, object htmlAttributes ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName, RouteValueDictionary routeValues ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName, RouteValueDictionary routeValues, object>.IDictionary htmlAttributes ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName, object routeValues ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName, object routeValues, object htmlAttributes ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName, string controllerName ) : MvcTag
MvcTagHtmlHelperExtension::BeginActionLink ( this htmlHelper, string actionName, string controllerName, object routeValues, object htmlAttributes ) : MvcTag
MvcTagHtmlHelperExtension