System.Web.Mvc.T4Extensions.BeginForm C# (CSharp) Method

BeginForm() public static method

public static BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.Html.MvcForm
htmlHelper this
result System.Web.Mvc.ActionResult
return System.Web.Mvc.Html.MvcForm
        public static MvcForm BeginForm(this HtmlHelper htmlHelper, ActionResult result) {
            return htmlHelper.BeginForm(result, FormMethod.Post);
        }

Same methods

T4Extensions::BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod ) : System.Web.Mvc.Html.MvcForm
T4Extensions::BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod, object>.IDictionary htmlAttributes ) : System.Web.Mvc.Html.MvcForm
T4Extensions::BeginForm ( this htmlHelper, System.Web.Mvc.ActionResult result, FormMethod formMethod, object htmlAttributes ) : System.Web.Mvc.Html.MvcForm

Usage Example

Example #1
0
 public static MvcForm BeginForm <TActionResult>(this HtmlHelper htmlHelper, Task <TActionResult> taskResult) where TActionResult : ActionResult
 {
     return(T4Extensions.BeginForm(htmlHelper, taskResult.Result, FormMethod.Post));
 }