Wednesday, September 17, 2014

Style Asp.Net MVC unobtrusive validation with Bootstrap

Another bridge to cross. There are multiple ways to do use the unobtrusive client-side validation with Aps.Net MVC (this is jQuery validation) but style it with Bootstrap, but the most elegant solution is in the article below:

ASP.Net MVC 5 – quick tip for unobtrusive validation and Bootstrap styling | danielwertheim

Daniel creates a (relatively) simple jQuery extension which does all the work in the background. All that remains is to add it to one of the script bundles. Thanks!

No comments: