O'Reilly logo

Bootstrap for ASP.NET MVC by Pieter van der Westhuizen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bootstrap HTML elements

Bootstrap provides a host of different HTML elements that are styled and ready to use. These elements include the following:

  • Tables
  • Buttons
  • Forms
  • Images

Bootstrap tables

Bootstrap provides a default styling for HTML tables with a few options to customize their layout and behaviors. The default ASP.NET MVC scaffolding automatically adds the table class names to the table element when generating a list view.

To see this in action, complete the following steps:

  1. Create a new view model class in our project's Models folder called ProductViewModel.cs. This class will contain six properties and its code is listed as follows:
    public class ProductViewModel { public int ProductID { get; set; } public string ProductName { get; set; } public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required