/// <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="actionName">The name of the action.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, object routeValues, object htmlAttributes )
 {
     return htmlHelper.BeginActionLink( actionName, null, null, null, null, new RouteValueDictionary( routeValues ), HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }
 /// <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="actionName">The name of the action.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginActionLink( actionName, null, null, null, null, null, attributeExpression.GetAttributes() );
 }
 /// <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="actionName">The name of the action.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, object routeValues )
 {
     return htmlHelper.BeginActionLink( actionName, null, null, null, null, new RouteValueDictionary( routeValues ), ( IDictionary<string, object> )null );
 }
 /// <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="actionName">The name of the action.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes )
 {
     return htmlHelper.BeginActionLink( actionName, controllerName, protocol, hostName, fragment, new RouteValueDictionary( routeValues ), HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }
 /// <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="actionName">The name of the action.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, string controllerName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginActionLink( actionName, controllerName, protocol, hostName, fragment, routeValues, attributeExpression.GetAttributes() );
 }
 public static MvcAnchor BeginActionLink(this AjaxHelper ajaxHelper, string actionName, string controllerName, object routeValues, AjaxOptions ajaxOptions)
 {
     return ajaxHelper.BeginActionLink(actionName, controllerName, new RouteValueDictionary(routeValues), ajaxOptions, null);
 }
 /// <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="actionName">The name of the action.</param>
 /// <returns>An opening &lt;a&gt; tag.</returns>
 public static MvcLink BeginActionLink( this HtmlHelper htmlHelper, string actionName )
 {
     return htmlHelper.BeginActionLink( actionName, null, null, null, null, null, ( IDictionary<string, object> )null );
 }
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response that contains the URL to the specified action method;
 /// when the action link is clicked, the action method is invoked asynchronously by using JavaScript.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="actionName">The name of the action method.</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 BeginActionLink( this AjaxHelper ajaxHelper, string actionName, object routeValues, AjaxOptions ajaxOptions )
 {
     return ajaxHelper.BeginActionLink( actionName, null, null, null, null, new RouteValueDictionary( routeValues ), ajaxOptions, ( IDictionary<string, object> )null );
 }
 /// <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="actionName">The name of the action.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, string controllerName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
 {
     return htmlHelper.BeginActionLink( actionName, controllerName, null, null, null, new RouteValueDictionary( routeValues ), htmlAttributes );
 }
Beispiel #10
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response that contains the URL to the specified action method;
 /// when the action link is clicked, the action method is invoked asynchronously by using JavaScript.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="actionName">The name of the action method.</param>
 /// <param name="controllerName">The name of the controller.</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="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 BeginActionLink( this AjaxHelper ajaxHelper, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, AjaxOptions ajaxOptions, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return ajaxHelper.BeginActionLink( actionName, controllerName, protocol, hostName, fragment, new RouteValueDictionary( routeValues ), ajaxOptions, attributeExpression.GetAttributes() );
 }
Beispiel #11
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response that contains the URL to the specified action method;
 /// when the action link is clicked, the action method is invoked asynchronously by using JavaScript.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="actionName">The name of the action method.</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 BeginActionLink( this AjaxHelper ajaxHelper, string actionName, AjaxOptions ajaxOptions, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return ajaxHelper.BeginActionLink( actionName, null, null, null, null, null, ajaxOptions, attributeExpression.GetAttributes() );
 }
Beispiel #12
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response that contains the URL to the specified action method;
 /// when the action link is clicked, the action method is invoked asynchronously by using JavaScript.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="actionName">The name of the action method.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this AjaxHelper ajaxHelper, string actionName, string controllerName, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary<string, object> htmlAttributes )
 {
     return ajaxHelper.BeginActionLink( actionName, controllerName, null, null, null, routeValues, ajaxOptions, htmlAttributes );
 }
Beispiel #13
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response that contains the URL to the specified action method;
 /// when the action link is clicked, the action method is invoked asynchronously by using JavaScript.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="actionName">The name of the action method.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this AjaxHelper ajaxHelper, string actionName, string controllerName, object routeValues, AjaxOptions ajaxOptions, object htmlAttributes )
 {
     return ajaxHelper.BeginActionLink( actionName, controllerName, null, null, null, new RouteValueDictionary( routeValues ), ajaxOptions, HtmlHelper.AnonymousObjectToHtmlAttributes( htmlAttributes ) );
 }
Beispiel #14
0
 /// <summary>
 /// Writes an opening &lt;a&gt; tag to the response that contains the URL to the specified action method;
 /// when the action link is clicked, the action method is invoked asynchronously by using JavaScript.
 /// </summary>
 /// <param name="ajaxHelper">The AJAX helper.</param>
 /// <param name="actionName">The name of the action method.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this AjaxHelper ajaxHelper, string actionName, string controllerName, AjaxOptions ajaxOptions )
 {
     return ajaxHelper.BeginActionLink( actionName, controllerName, null, null, null, null, ajaxOptions, ( IDictionary<string, object> )null );
 }
Beispiel #15
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="actionName">The name of the action.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, object routeValues, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginActionLink( actionName, null, null, null, null, new RouteValueDictionary( routeValues ), attributeExpression.GetAttributes() );
 }
Beispiel #16
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="actionName">The name of the action.</param>
 /// <param name="controllerName">The name of the controller.</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 BeginActionLink( this HtmlHelper htmlHelper, string actionName, string controllerName, RouteValueDictionary routeValues, Action<HtmlAttributeBuilder> attributeExpression )
 {
     return htmlHelper.BeginActionLink( actionName, controllerName, null, null, null, routeValues, attributeExpression.GetAttributes() );
 }
 /// <summary>
 /// Begins a new action link.  For use in a using statement, allowing other code inside the tag.
 /// </summary>
 /// <param name="htmlHelper">The class being extended with this method.</param>
 /// <param name="result">An IT4MVCActionResult from a T4 MVC action method used to help build urls.</param>
 /// <param name="htmlAttributes">A dictionary with name and value pairs.</param>
 /// <returns></returns>
 public static MvcTag BeginActionLink(this HtmlHelper htmlHelper, ActionResult result, IDictionary<string, object> htmlAttributes)
 {
     var callInfo = result.GetT4MVCResult();
     return htmlHelper.BeginActionLink(callInfo.Action, callInfo.Controller, callInfo.RouteValueDictionary, htmlAttributes);
 }
 public static MvcAnchor BeginActionLink(this AjaxHelper ajaxHelper, string actionName, string controller, AjaxOptions ajaxOptions)
 {
     return ajaxHelper.BeginActionLink(actionName, controller, null, ajaxOptions, null);
 }