AjaxExtensions::RouteLink Method

 

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.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

System_CAPS_pubmethodSystem_CAPS_staticRouteLink(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.

Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	Object^ routeValues,
	AjaxOptions^ ajaxOptions
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeValues
Type: System::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
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	Object^ routeValues,
	AjaxOptions^ ajaxOptions,
	Object^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeValues
Type: System::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
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System::Object^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	RouteValueDictionary^ routeValues,
	AjaxOptions^ ajaxOptions
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeValues
Type: System.Web.Routing::RouteValueDictionary^

An object that contains the parameters for a route.

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	RouteValueDictionary^ routeValues,
	AjaxOptions^ ajaxOptions,
	IDictionary<String^, Object^>^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeValues
Type: System.Web.Routing::RouteValueDictionary^

An object that contains the parameters for a route.

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System.Collections.Generic::IDictionary<String^, Object^>^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	AjaxOptions^ ajaxOptions
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	AjaxOptions^ ajaxOptions,
	IDictionary<String^, Object^>^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System.Collections.Generic::IDictionary<String^, Object^>^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	AjaxOptions^ ajaxOptions,
	Object^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System::Object^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	Object^ routeValues,
	AjaxOptions^ ajaxOptions
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

routeValues
Type: System::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
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	Object^ routeValues,
	AjaxOptions^ ajaxOptions,
	Object^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

routeValues
Type: System::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
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System::Object^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	RouteValueDictionary^ routeValues,
	AjaxOptions^ ajaxOptions
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

routeValues
Type: System.Web.Routing::RouteValueDictionary^

An object that contains the parameters for a route.

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	RouteValueDictionary^ routeValues,
	AjaxOptions^ ajaxOptions,
	IDictionary<String^, Object^>^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

routeValues
Type: System.Web.Routing::RouteValueDictionary^

An object that contains the parameters for a route.

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System.Collections.Generic::IDictionary<String^, Object^>^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top

AjaxExtensions::RouteLink Method (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.

public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
	AjaxHelper^ ajaxHelper,
	String^ linkText,
	String^ routeName,
	String^ protocol,
	String^ hostName,
	String^ fragment,
	RouteValueDictionary^ routeValues,
	AjaxOptions^ ajaxOptions,
	IDictionary<String^, Object^>^ htmlAttributes
)

Parameters

ajaxHelper
Type: System.Web.Mvc::AjaxHelper^

The AJAX helper.

linkText
Type: System::String^

The inner text of the anchor element.

routeName
Type: System::String^

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

protocol
Type: System::String^

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

hostName
Type: System::String^

The host name for the URL.

fragment
Type: System::String^

The URL fragment name (the anchor name).

routeValues
Type: System.Web.Routing::RouteValueDictionary^

An object that contains the parameters for a route.

ajaxOptions
Type: System.Web.Mvc.Ajax::AjaxOptions^

An object that provides options for the asynchronous request.

htmlAttributes
Type: System.Collections.Generic::IDictionary<String^, Object^>^

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

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An anchor element.

Exception Condition
ArgumentException

The linkText parameter is null or empty.

The RouteLink method renders an anchor (a) element that links to a URL, which could resolve to an action method, a file, a folder, or some other resource.

The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for an anchor (a) element, you might provide the following anonymous object:

No code example is currently available or this language may not be supported.
Return to top
Show: