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

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -