public static MvcHtmlString JQueryActionLink(this AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, JQueryOptions jQueryOptions, System.Collections.Generic.IDictionary <string, object> htmlAttributes) { if (string.IsNullOrEmpty(linkText)) { throw new System.ArgumentException("MvcResources.Common_NullOrEmpty", "linkText"); } string targetUrl = UrlHelper.GenerateUrl(null, actionName, controllerName, protocol, hostName, fragment, routeValues, ajaxHelper.RouteCollection, ajaxHelper.ViewContext.RequestContext, true); return(MvcHtmlString.Create(JQueryExtension.GenerateLink(linkText, targetUrl, jQueryOptions, htmlAttributes))); }
public static MvcHtmlString JQueryRouteLink(this AjaxHelper ajaxHelper, string linkText, string routeName, System.Web.Routing.RouteValueDictionary routeValues, JQueryOptions jQueryOptions, System.Collections.Generic.IDictionary <string, object> htmlAttributes) { if (string.IsNullOrEmpty(linkText)) { throw new System.ArgumentException("MvcResources.Common_NullOrEmpty", "linkText"); } string targetUrl = UrlHelper.GenerateUrl(routeName, null, null, routeValues ?? new System.Web.Routing.RouteValueDictionary(), ajaxHelper.RouteCollection, ajaxHelper.ViewContext.RequestContext, false); return(MvcHtmlString.Create(JQueryExtension.GenerateLink(linkText, targetUrl, JQueryExtension.GetJQueryOptions(jQueryOptions), htmlAttributes))); }