AjaxExtensions.RouteLink Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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) |
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) |
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) |
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) |
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) |
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>) |
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) |
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) |
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>) |
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) |
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>) |
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, 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 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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName 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.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText 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.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName As String, ajaxOptions As AjaxOptions) As MvcHtmlString
Parameters
- ajaxHelper
- AjaxHelper
The AJAX helper.
- linkText
- String
The inner text of the anchor element.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText 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.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText 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.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName 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.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName As String, 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.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName As String, ajaxOptions As AjaxOptions, htmlAttributes As Object) As MvcHtmlString
Parameters
- ajaxHelper
- AjaxHelper
The AJAX helper.
- linkText
- String
The inner text of the anchor element.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName 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.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText 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.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName 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.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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
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.
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
<Extension()>
Public Function RouteLink (ajaxHelper As AjaxHelper, linkText As String, routeName 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.
- routeName
- String
The name of the route to use to obtain the form post URL.
- 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.