Friday 6 December 2013

Working with twitter bootstrap in Asp.Net MVC4

At time when i was struggling in my project for UI development my manager told me about this great thing. At start i found it little difficult to work with but later when i got to know about its huge benefits and swiftness i became a fan of it. I was like "Oh, we can make complete project out from it.".

What really twitter bootstrap is who made it and why, all these questions i will answer here only.
2 Designers from twitter (Mark Otto and Jacob Thornton) actually made it now its an open source project hosted on github.

For MVC projects you directly have to install the 2 NuGet packages. They are:
  1. twitter.bootstrap.mvc4
  2. twitter.bootstrap.mvc4.htmlhelpers
Actually you have one more option of installing the samples that those guys have made. For that you have to install a separate package:  twitter.bootstrap.samples.mvc4

Once through with all this you can continue with creating Models, Controllers, Generating Views or Creating Views in your project. All the Views will use Bootstrap Layout for Textboxes, Checkboxes. But for buttons you have to apply the class seprately.
Following are some examples of controls with bootstrap styling.
For getting more out of the Bootstrap you seriously need to know about all the style elements which you can get a good understanding from the following link:

I hope that this article will help you in using Twitter bootstrap for MVC4.
For any queries write comment.

1 comment:

  1. In different words, solely the state’s retail entities could also be} granted on-line betting licenses in an 18-month window that started in June 2020. While the country’s mobile cash revolution has performed a well-documented function in encouraging savings and democratizing access to finance, M-Pesa’s function in betting presents one thing of a paradox. Today, it’s easier than ever for those in fragile financial circumstances to squander everything. The vast majority, like Kirwa, do so on their smartphones using mobile cash. In August, Jake Paul, the favored YouTuber and social media influencer, introduced a brand new} app known as Betr, which pledges to “TikTok-ify” sports activities betting for younger generations. His vision entails 카지노사이트 combining social media content — including cameos and advice from athletes themselves — with wagering.