コード例 #1
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 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());
 }
コード例 #2
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper,
     Action<IMvcFormBuilder> builderExpression)
 {
     IMvcFormBuilder builder = htmlHelper.BuildForm();
     if (builderExpression != null)
     {
         builderExpression.Invoke(builder);
     }
     return builder;
 }
コード例 #3
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper,
     string actionName,
     string controllerName)
 {
     return htmlHelper.BuildForm(actionName, controllerName, new RouteValueDictionary(), FormMethod.Post, new RouteValueDictionary());
 }
コード例 #4
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 /// <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);
 }
コード例 #5
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 public static IMvcFormBuilder BuildForm(this HtmlHelper htmlHelper,
     RouteValueDictionary routeValues)
 {
     return htmlHelper.BuildForm(null, null, routeValues, FormMethod.Post, new RouteValueDictionary());
 }
コード例 #6
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 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));
 }
コード例 #7
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 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());
 }
コード例 #8
0
ファイル: FormExtensions.cs プロジェクト: isannn/Build.Mvc
 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);
 }