AjaxExtensions.ActionLink AjaxExtensions.ActionLink Method

Definition

Overloads

ActionLink(AjaxHelper, String, String, AjaxOptions) 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>) 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) 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>) 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>) 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) 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) 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) 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) 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) 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) 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) 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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

ajaxOptions
AjaxOptions AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

protocol
String String

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

hostName
String String

The host name for the URL.

fragment
String String

The URL fragment name (the anchor name).

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

protocol
String String

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

hostName
String String

The host name for the URL.

fragment
String String

The URL fragment name (the anchor name).

routeValues
Object 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 AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object 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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

routeValues
Object 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 AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object 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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

routeValues
Object 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 AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object 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.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

ajaxOptions
AjaxOptions AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

routeValues
Object 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 AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

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

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper.

linkText
String String

The inner text of the anchor element.

actionName
String String

The name of the action method.

controllerName
String String

The name of the controller.

routeValues
Object 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 AjaxOptions

An object that provides options for the asynchronous request.

Returns

An anchor element.

Exceptions

The linkText parameter is null or empty.

Applies to