Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bootstrap for ASP.NET MVC

You're reading from   Bootstrap for ASP.NET MVC Combine the power of ASP.NET Core with Bootstrap 4 to build elegant, responsive web apps

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher
ISBN-13 9781785889479
Length 186 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Pieter van der Westhuizen Pieter van der Westhuizen
Author Profile Icon Pieter van der Westhuizen
Pieter van der Westhuizen
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Getting Started with ASP.NET Core and Bootstrap 4 2. Using Bootstrap CSS and HTML Elements FREE CHAPTER 3. Using Bootstrap Components 4. Using Bootstrap JavaScript Components 5. Creating MVC Bootstrap Helper and Tag Helpers 6. Converting a Bootstrap HTML Template into a Usable ASP.NET MVC Project 7. Using the jQuery DataTables Plugin with Bootstrap 4 8. Creating Bootstrap 4 ASP.NET MVC Sites Using Visual Studio Code A. Bootstrap Resources

Creating the ASP.NET MVC project


To create a new ASP.NET MVC project, perform the following steps:

  1. In Visual Studio, create a new ASP.NET Core Web Application project, as shown in the following screenshot:

  2. In the New ASP.NET Core Web Application dialog, select the Empty template under the ASP.NET Core Templates and click on the OK button:

  3. Visual Studio will create a default empty MVC project. Right-click on the wwwroot folder inside the project and navigate to Add | New Folder. Create the following two folders:

    • css 

    • js

  4. Add the styles.css file from the Bootstrap 4 Admin Dashboard template css folder to the css folder inside the wwwroot folder in the project.

  5. Copy the scripts.js file located in the Bootstrap 4 Admin Dashboard template's js folder to the js folder in the project's wwwroot folder.

  6. Next, add two folders to the root of the project called Controllers and Views.

  7. Next, in order to enable MVC features such as tooling and Tag Helpers, open the project.json file and add the following to the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image