1.5.3.Client side validation

  • 1.pros: the form can be validated without processing by server

  • 2.Add the section called scripts which contains jQueryval to cshhtml file after adding validation:

@section scripts
{
    @Scripts.Render("~/bundles/jqueryval")
}

Last updated