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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -