LinkExtensions.ActionLink Method

 

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, Object)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, Object, Object)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, RouteValueDictionary)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, RouteValueDictionary, IDictionary<String, Object>)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, String)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, String, Object, Object)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, String, RouteValueDictionary, IDictionary<String, Object>)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, String, String, String, String, Object, Object)

System_CAPS_pubmethodSystem_CAPS_static ActionLink(HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>)

See Also

LinkExtensions Class
System.Web.Mvc.Html Namespace

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    object routeValues
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    Object^ routeValues
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        routeValues:Object -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    routeValues As Object
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    object routeValues,
    object htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    Object^ routeValues,
    Object^ htmlAttributes
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        routeValues:Object *
        htmlAttributes:Object -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    routeValues As Object,
    htmlAttributes As Object
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    RouteValueDictionary routeValues
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    RouteValueDictionary^ routeValues
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        routeValues:RouteValueDictionary -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    routeValues As RouteValueDictionary
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    RouteValueDictionary routeValues,
    IDictionary<string, object> htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    RouteValueDictionary^ routeValues,
    IDictionary<String^, Object^>^ htmlAttributes
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        routeValues:RouteValueDictionary *
        htmlAttributes:IDictionary<string, Object> -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    routeValues As RouteValueDictionary,
    htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    string controllerName
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    String^ controllerName
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        controllerName:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    controllerName As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    string controllerName,
    object routeValues,
    object htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    String^ controllerName,
    Object^ routeValues,
    Object^ htmlAttributes
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        controllerName:string *
        routeValues:Object *
        htmlAttributes:Object -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    controllerName As String,
    routeValues As Object,
    htmlAttributes As Object
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    string controllerName,
    RouteValueDictionary routeValues,
    IDictionary<string, object> htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    String^ controllerName,
    RouteValueDictionary^ routeValues,
    IDictionary<String^, Object^>^ htmlAttributes
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        controllerName:string *
        routeValues:RouteValueDictionary *
        htmlAttributes:IDictionary<string, Object> -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    controllerName As String,
    routeValues As RouteValueDictionary,
    htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

public static MvcHtmlString ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    string controllerName,
    string protocol,
    string hostName,
    string fragment,
    object routeValues,
    object htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    String^ controllerName,
    String^ protocol,
    String^ hostName,
    String^ fragment,
    Object^ routeValues,
    Object^ htmlAttributes
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        controllerName:string *
        protocol:string *
        hostName:string *
        fragment:string *
        routeValues:Object *
        htmlAttributes:Object -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    controllerName As String,
    protocol As String,
    hostName As String,
    fragment As String,
    routeValues As Object,
    htmlAttributes As Object
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

Syntax

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
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    String^ controllerName,
    String^ protocol,
    String^ hostName,
    String^ fragment,
    RouteValueDictionary^ routeValues,
    IDictionary<String^, Object^>^ htmlAttributes
)
static member ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        controllerName:string *
        protocol:string *
        hostName:string *
        fragment:string *
        routeValues:RouteValueDictionary *
        htmlAttributes:IDictionary<string, Object> -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    controllerName As String,
    protocol As String,
    hostName As String,
    fragment As String,
    routeValues As RouteValueDictionary,
    htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top