Exemplo n.º 1
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeName">The name of the route that is used to return a virtual path.</param>
 /// <param name="protocol">The protocol for the URL, such as "http" or "https".</param>
 /// <param name="hostName">The host name for the URL.</param>
 /// <param name="fragment">The URL fragment name (the anchor name).</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <param name="htmlAttributes">
 ///		An object that contains the HTML attributes for the element.
 ///		The attributes are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes )
 {
     return htmlHelper.BeginRouteLink( routeName, protocol, hostName, fragment, new RouteValueDictionary( routeValues ), HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }
Exemplo n.º 2
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeName">The name of the route that is used to return a virtual path.</param>
 /// <param name="protocol">The protocol for the URL, such as "http" or "https".</param>
 /// <param name="hostName">The host name for the URL.</param>
 /// <param name="fragment">The URL fragment name (the anchor name).</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <param name="attributeExpression">An expression that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, string routeName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginRouteLink( routeName, protocol, hostName, fragment, routeValues, attributeExpression.GetAttributes() );
 }
Exemplo n.º 3
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeName">The name of the route that is used to return a virtual path.</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, string routeName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
 {
     return htmlHelper.BeginRouteLink( routeName, null, null, null, routeValues, htmlAttributes );
 }
Exemplo n.º 4
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeName">The name of the route that is used to return a virtual path.</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <param name="attributeExpression">An expression that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, string routeName, RouteValueDictionary routeValues, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginRouteLink( routeName, null, null, null, routeValues, attributeExpression.GetAttributes() );
 }
Exemplo n.º 5
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeName">The name of the route that is used to return a virtual path.</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, string routeName, object routeValues )
 {
     return htmlHelper.BeginRouteLink( routeName, null, null, null, new RouteValueDictionary( routeValues ), ( IDictionary<string, object> )null );
 }
Exemplo n.º 6
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeName">The name of the route that is used to return a virtual path.</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <param name="htmlAttributes">
 ///		An object that contains the HTML attributes for the element.
 ///		The attributes are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, string routeName, object routeValues, object htmlAttributes )
 {
     return htmlHelper.BeginRouteLink( routeName, null, null, null, new RouteValueDictionary( routeValues ), HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }
Exemplo n.º 7
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <param name="attributeExpression">An expression that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, object routeValues, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginRouteLink( null, null, null, null, new RouteValueDictionary( routeValues ), attributeExpression.GetAttributes() );
 }
Exemplo n.º 8
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this HtmlHelper htmlHelper, RouteValueDictionary routeValues )
 {
     return htmlHelper.BeginRouteLink( null, null, null, null, routeValues, ( IDictionary<string, object> )null );
 }
Exemplo n.º 9
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeName">The name of the route to use to obtain the form post URL.</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <param name="attributeExpression">An expression that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, string routeName, object routeValues, AjaxOptions ajaxOptions, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return ajaxHelper.BeginRouteLink( routeName, null, null, null, new RouteValueDictionary( routeValues ), ajaxOptions, attributeExpression.GetAttributes() );
 }
Exemplo n.º 10
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeName">The name of the route to use to obtain the form post URL.</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, string routeName, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary<string, object> htmlAttributes )
 {
     return ajaxHelper.BeginRouteLink( routeName, null, null, null, routeValues, ajaxOptions, htmlAttributes );
 }
Exemplo n.º 11
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeName">The name of the route to use to obtain the form post URL.</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, string routeName, object routeValues, AjaxOptions ajaxOptions )
 {
     return ajaxHelper.BeginRouteLink( routeName, null, null, null, new RouteValueDictionary( routeValues ), ajaxOptions, ( IDictionary<string, object> )null );
 }
Exemplo n.º 12
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeName">The name of the route to use to obtain the form post URL.</param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <param name="htmlAttributes">
 ///		An object that contains the HTML attributes for the element.
 ///		The attributes are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, string routeName, AjaxOptions ajaxOptions, object htmlAttributes )
 {
     return ajaxHelper.BeginRouteLink( routeName, null, null, null, null, ajaxOptions, HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }
Exemplo n.º 13
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <param name="attributeExpression">An expression that contains the HTML attributes to set for the element.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return ajaxHelper.BeginRouteLink( null, null, null, null, routeValues, ajaxOptions, attributeExpression.GetAttributes() );
 }
Exemplo n.º 14
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeValues">An object that contains the parameters for a route.</param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, RouteValueDictionary routeValues, AjaxOptions ajaxOptions )
 {
     return ajaxHelper.BeginRouteLink( null, null, null, null, routeValues, ajaxOptions, ( IDictionary<string, object> )null );
 }
Exemplo n.º 15
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response 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.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="routeValues">
 ///		An object that contains the parameters for a route.
 ///		The parameters are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <param name="ajaxOptions">An object that provides options for the asynchronous request.</param>
 /// <param name="htmlAttributes">
 ///		An object that contains the HTML attributes for the element.
 ///		The attributes are retrieved through reflection by examining the properties of the object.
 ///		The object is typically created by using object initializer syntax.
 /// </param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginRouteLink( this AjaxHelper ajaxHelper, object routeValues, AjaxOptions ajaxOptions, object htmlAttributes )
 {
     return ajaxHelper.BeginRouteLink( null, null, null, null, new RouteValueDictionary( routeValues ), ajaxOptions, HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }