public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, [AspMvcAction] string actionName, [AspMvcController] string controllerName, object routeValues) { return htmlHelper.BuildForm(actionName, controllerName, new RouteValueDictionary(routeValues), FormMethod.Post, new RouteValueDictionary()); }
public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, Action<IMvcFormBuilder> builderExpression) { IMvcFormBuilder builder = htmlHelper.BuildForm(); if (builderExpression != null) { builderExpression.Invoke(builder); } return builder; }
public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, string actionName, string controllerName) { return htmlHelper.BuildForm(actionName, controllerName, new RouteValueDictionary(), FormMethod.Post, new RouteValueDictionary()); }
/// <summary> /// Builds the form. /// </summary> /// <param name="htmlHelper"> The HTML helper. </param> /// <param name="actionName"> Name of the action. </param> /// <returns> </returns> public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, string actionName) { return htmlHelper.BuildForm(actionName, null); }
public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, RouteValueDictionary routeValues) { return htmlHelper.BuildForm(null, null, routeValues, FormMethod.Post, new RouteValueDictionary()); }
public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, [AspMvcAction] string actionName, [AspMvcController] string controllerName, object routeValues, FormMethod method, object htmlAttributes) { return htmlHelper.BuildForm(actionName, controllerName, new RouteValueDictionary(routeValues), method, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)); }
public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, [AspMvcAction] string actionName, [AspMvcController] string controllerName, RouteValueDictionary routeValues, FormMethod method) { return htmlHelper.BuildForm(actionName, controllerName, routeValues, method, new RouteValueDictionary()); }
public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper, [AspMvcAction] string actionName, [AspMvcController] string controllerName, FormMethod method, IDictionary<string, object> htmlAttributes) { return htmlHelper.BuildForm(actionName, controllerName, new RouteValueDictionary(), method, htmlAttributes); }