Example #1
0
 public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod)
 {
     return htmlHelper.BeginFormAntiForgeryPost(formAction, formMethod, new RouteValueDictionary());
 }
Example #2
0
 public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod, object htmlAttributes)
 {
     return htmlHelper.BeginFormAntiForgeryPost(formAction, formMethod, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes));
 }
Example #3
0
 public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper)
 {
     return htmlHelper.BeginFormAntiForgeryPost(htmlHelper.ViewContext.HttpContext.Request.Url.PathAndQuery, FormMethod.Post, new RouteValueDictionary());
 }