AjaxExtensions.ActionLink Method

Definition

Overloads

ActionLink(AjaxHelper, String, String, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, String, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, Object, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, ajaxOptions As AjaxOptions) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

protocol
String

The protocol for the URL, such as "http" or "https".

hostName
String

The host name for the URL.

fragment
String

The URL fragment name (the anchor name).

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
IDictionary<String,Object>

An object that contains the HTML attributes to set for the element.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, String, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * string * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As Object, ajaxOptions As AjaxOptions, htmlAttributes As Object) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

protocol
String

The protocol for the URL, such as "http" or "https".

hostName
String

The host name for the URL.

fragment
String

The URL fragment name (the anchor name).

routeValues
Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object

An object that contains the HTML attributes to set for the element.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
IDictionary<String,Object>

An object that contains the HTML attributes to set for the element.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
IDictionary<String,Object>

An object that contains the HTML attributes to set for the element.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, routeValues As Object, ajaxOptions As AjaxOptions, htmlAttributes As Object) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

routeValues
Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object

An object that contains the HTML attributes to set for the element.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, routeValues As Object, ajaxOptions As AjaxOptions, htmlAttributes As Object) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

routeValues
Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object

An object that contains the HTML attributes to set for the element.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, ajaxOptions As AjaxOptions) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, Object, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, routeValues As Object, ajaxOptions As AjaxOptions) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

routeValues
Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to

ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member ActionLink : System.Web.Mvc.AjaxHelper * string * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (ajaxHelper As AjaxHelper, linkText As String, actionName As String, controllerName As String, routeValues As Object, ajaxOptions As AjaxOptions) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

linkText
String

The inner text of the anchor element.

actionName
String

The name of the action method.

controllerName
String

The name of the controller.

routeValues
Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to