Bootstrap Modals and .net C# server response -
i working on web application, using .net mvc c#. have bootstrap modal form. after doing post: how can server response same modal, example validate errors using .net validator messages. ?
you can use jquery validate on modals same way use on part of dom. remember use @html.editorfor(...) or similar razor methods , link jqueryval javascript with:
@section scripts { @scripts.render("~/bundles/jqueryval") }
and in bundleconfig:
bundles.add(new scriptbundle("~/bundles/jqueryval").include("~/scripts/jquery.validate*"));
Comments
Post a Comment