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