ASP.NET MVC Bootstrap
ASP.NET MVC, by default supports Bootstrap and use it's libraries to create frontend of the application. Let?s create a MVC project and examine its libraries.
First create a project by selecting from the file menu.
Select the type of web project.
Select template for the web application. We are selecting MVC.
After clicking ok, it will create a project that has following structure.
The Content folder contains Bootstrap CSS files. Our project contains the following files.
To see the uses of these CSS classes, click on the login link at top right corner of the web page. This will redirect to the login page that has a form to be filled. This form contains HTML components that are organized in a layout with the help of CSS classes.
Take a closer look at the source code of the Login.cshtml file. This file uses CSS classes like row, col-md-8 etc.
If we look at the view source of the Login.cshtml page, it shows that the Bootstrap libraries are linked to the web page. The following two screenshots shows that.