public static JQueryForm JQueryBeginForm(this AjaxHelper ajaxHelper, JQueryOptions jQueryOptions) { string rawUrl = ajaxHelper.ViewContext.HttpContext.Request.RawUrl; return(ajaxHelper.FormHelper(rawUrl, jQueryOptions, new System.Web.Routing.RouteValueDictionary())); }
public static JQueryForm JQueryBeginRouteForm(this AjaxHelper ajaxHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues, JQueryOptions jQueryOptions, System.Collections.Generic.IDictionary <string, object> htmlAttributes) { string formAction = UrlHelper.GenerateUrl(routeName, null, null, routeValues ?? new System.Web.Routing.RouteValueDictionary(), ajaxHelper.RouteCollection, ajaxHelper.ViewContext.RequestContext, false); return(ajaxHelper.FormHelper(formAction, jQueryOptions, htmlAttributes)); }