LinkExtensions.ActionLink Method
Namespace:
System.Web.Mvc.Html
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
LinkExtensions.ActionLink Method (HtmlHelper, String, String)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, Object)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, object routeValues )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- routeValues
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, Object, Object)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, object routeValues, object htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- routeValues
- Type: System.Object
- htmlAttributes
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, RouteValueDictionary)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, RouteValueDictionary routeValues )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, RouteValueDictionary, IDictionary<String, Object>)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
- htmlAttributes
- Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, String)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- controllerName
- Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, String, Object, Object)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, object routeValues, object htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- controllerName
- Type: System.String
- routeValues
- Type: System.Object
- htmlAttributes
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, String, RouteValueDictionary, IDictionary<String, Object>)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- controllerName
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
- htmlAttributes
- Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, String, String, String, String, Object, Object)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- controllerName
- Type: System.String
- protocol
- Type: System.String
- hostName
- Type: System.String
- fragment
- Type: System.String
- routeValues
- Type: System.Object
- htmlAttributes
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.ActionLink Method (HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>)
public static MvcHtmlString ActionLink( this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- actionName
- Type: System.String
- controllerName
- Type: System.String
- protocol
- Type: System.String
- hostName
- Type: System.String
- fragment
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
- htmlAttributes
- Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.MvcHtmlString
Show:

