public static MvcForm BeginFormWithValidation(this HtmlHelper htmlHelper, ISupportPost url) { var form = htmlHelper.BeginForm(url); // htmlHelper.ViewContext.FormContext.ClientValidationFunction = "EnableClientValidation"; return form; }
public static MvcForm BeginForm(this HtmlHelper htmlHelper, ISupportPost url) { return BeginForm(htmlHelper, url, FormMethod.Post); }