Twitter Bootstrap & .net MVC 4
Twitter Bootstrap is a really cool lightweight library to enable modern looking responsive web development. It’s pretty easy to incorporate with .net MVC 4, but there are two items you need to do when using MVC 4 with Twitter Bootstrap:
- Update jquery to the version that Bootstrap needs (currently 1.7.1) you’ll get JS errors if you don’t. MVC 4 is currently at 1.6.x.
- Edit your Global.asax file to enable BundleTable.Bundles.EnableDefaultBundles(); and disable BundleTable.Bundles.RegisterTemplateBundles(); or your JS bundle won’t include the bootstrap.js (if you include it in your project)
more info