AjaxExtensions.RouteLink AjaxExtensions.RouteLink Method

Definition

Overloads

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

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, Object, AjaxOptions) RouteLink(AjaxHelper, String, Object, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, AjaxOptions) RouteLink(AjaxHelper, String, String, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions) RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, Object, AjaxOptions, Object) RouteLink(AjaxHelper, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, Object, AjaxOptions) RouteLink(AjaxHelper, String, String, Object, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, AjaxOptions, IDictionary<String,Object>) RouteLink(AjaxHelper, String, String, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, AjaxOptions, Object) RouteLink(AjaxHelper, String, String, AjaxOptions, Object)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions) RouteLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

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

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, Object, AjaxOptions, Object) RouteLink(AjaxHelper, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

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

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member RouteLink : 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member RouteLink : System.Web.Mvc.AjaxHelper * 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.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member RouteLink : 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member RouteLink : System.Web.Mvc.AjaxHelper * 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.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member RouteLink : System.Web.Mvc.AjaxHelper * 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.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member RouteLink : 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member RouteLink : System.Web.Mvc.AjaxHelper * string * string * 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member RouteLink : System.Web.Mvc.AjaxHelper * string * string * 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member RouteLink : 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member RouteLink : System.Web.Mvc.AjaxHelper * 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.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member RouteLink : 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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 virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.AjaxHelper ajaxHelper, string linkText, string routeName, 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 RouteLink : System.Web.Mvc.AjaxHelper * 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.

routeName
String String

The name of the route to use to obtain the form post URL.

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.

Applies to