Bootstrap for ASP.NET MVC - Second Edition

Combine the power of ASP.NET Core with Bootstrap 4 to build elegant, responsive web apps

Bootstrap for ASP.NET MVC - Second Edition

Pieter van der Westhuizen

3 customer reviews
Combine the power of ASP.NET Core with Bootstrap 4 to build elegant, responsive web apps
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785889479
Paperback186 pages

Book Description

One of the leading open source frontend frameworks, Bootstrap has undergone a significant change and introduced several features that make designing compelling, next-generation UIs much simpler. Integrating Bootstrap with ASP.NET's powerful components can further enhance its capabilities.

This book guides you through the process of creating an ASP.NET MVC website from scratch using Bootstrap. After a primer on the fundamentals of Bootstrap, you will learn your way around and create a new ASP.NET MVC project in Visual Studio. You will move on to learn about the various Bootstrap components as well as techniques to include them in your own projects. The book includes practical examples to show you how to use open-source plugins with Bootstrap and ASP.NET MVC and guides you through building an ASP.NET MVC website using Bootstrap, utilizing layout and user-interface components. At the end of this book, you will find some valuable tips and tricks to help you get the most out of your Bootstrap-integrated and ASP.NET MVC-integrated website.

Table of Contents

Chapter 1: Getting Started with ASP.NET Core and Bootstrap 4
Files included in the Bootstrap distribution
CSS pre-processors
Creating an empty ASP.NET MVC site and adding Bootstrap manually
Adding the Bootstrap 4 files using Bower
Compiling the Bootstrap Sass files using Gulp
Installing Font Awesome
Creating a MVC Layout page
Summary
Chapter 2: Using Bootstrap CSS and HTML Elements
The Bootstrap grid system
Bootstrap HTML elements
Form layout and elements
Bootstrap images
Bootstrap figures
Summary
Chapter 3: Using Bootstrap Components
The Bootstrap navigation bar
List groups
Badges
Media object
Breadcrumbs
Pagination
Input groups
Button dropdowns
Alerts
Progress bars
Cards
Summary
Chapter 4: Using Bootstrap JavaScript Components
Data attributes versus the programmatic API
Cascading dropdowns
Modal dialogs
Tabs
Tooltips
Popovers
The accordion/collapse component
The carousel component
Summary
Chapter 5: Creating MVC Bootstrap Helper and Tag Helpers
Built-in HTML Helpers
Built-in Tag Helpers
The difference between HTML Helpers and Tag Helpers
Creating HTML Helpers using static methods
Creating helpers using extension methods
Creating self-closing helpers
Creating a Bootstrap button Tag Helper
Creating a Bootstrap Alert Tag Helper
Summary
Chapter 6: Converting a Bootstrap HTML Template into a Usable ASP.NET MVC Project
Working with prebuilt HTML templates
Creating the ASP.NET MVC project
Creating the master layout
Adding a view for the home controller
Adding different page views
Adding charts to views
Summary
Chapter 7: Using the jQuery DataTables Plugin with Bootstrap 4
jQuery DataTables
Adding DataTables to your ASP.NET MVC project
Loading and displaying data in jQuery DataTables
DataTables plugins
DataTables extensions
Summary
Chapter 8: Creating Bootstrap 4 ASP.NET MVC Sites Using Visual Studio Code
What is Visual Studio Code?
Installing Visual Studio Code
Creating an empty ASP.NET project
Using Bower to add the Bootstrap 4 files
Using Gulp to compile the Bootstrap Sass files
Creating a MVC layout page
Summary

What You Will Learn

  • Create a new ASP.NET MVC project that uses Bootstrap for its styling and learn how to include external libraries using the new package managers
  • Learn to use the various Bootstrap CSS and HTML elements, and how to use the new Bootstrap 4 grid layout system
  • Explore the different input groups and implement alerts, progress bars, and badges
  • Explore JavaScript components by illustrating and walking through the process of using JavaScript/jQuery to add interactivity to Twitter Bootstrap components
  • Build your own ASP.NET MVC helpers and tag helpers to reduce the amount of HTML needed to generate Bootstrap elements
  • Convert a Bootstrap HTML template into a usable ASP.NET MVC project
  • Use the jQuery DataTables plugin with Bootstrap and ASP.NET MVC

Authors

Table of Contents

Chapter 1: Getting Started with ASP.NET Core and Bootstrap 4
Files included in the Bootstrap distribution
CSS pre-processors
Creating an empty ASP.NET MVC site and adding Bootstrap manually
Adding the Bootstrap 4 files using Bower
Compiling the Bootstrap Sass files using Gulp
Installing Font Awesome
Creating a MVC Layout page
Summary
Chapter 2: Using Bootstrap CSS and HTML Elements
The Bootstrap grid system
Bootstrap HTML elements
Form layout and elements
Bootstrap images
Bootstrap figures
Summary
Chapter 3: Using Bootstrap Components
The Bootstrap navigation bar
List groups
Badges
Media object
Breadcrumbs
Pagination
Input groups
Button dropdowns
Alerts
Progress bars
Cards
Summary
Chapter 4: Using Bootstrap JavaScript Components
Data attributes versus the programmatic API
Cascading dropdowns
Modal dialogs
Tabs
Tooltips
Popovers
The accordion/collapse component
The carousel component
Summary
Chapter 5: Creating MVC Bootstrap Helper and Tag Helpers
Built-in HTML Helpers
Built-in Tag Helpers
The difference between HTML Helpers and Tag Helpers
Creating HTML Helpers using static methods
Creating helpers using extension methods
Creating self-closing helpers
Creating a Bootstrap button Tag Helper
Creating a Bootstrap Alert Tag Helper
Summary
Chapter 6: Converting a Bootstrap HTML Template into a Usable ASP.NET MVC Project
Working with prebuilt HTML templates
Creating the ASP.NET MVC project
Creating the master layout
Adding a view for the home controller
Adding different page views
Adding charts to views
Summary
Chapter 7: Using the jQuery DataTables Plugin with Bootstrap 4
jQuery DataTables
Adding DataTables to your ASP.NET MVC project
Loading and displaying data in jQuery DataTables
DataTables plugins
DataTables extensions
Summary
Chapter 8: Creating Bootstrap 4 ASP.NET MVC Sites Using Visual Studio Code
What is Visual Studio Code?
Installing Visual Studio Code
Creating an empty ASP.NET project
Using Bower to add the Bootstrap 4 files
Using Gulp to compile the Bootstrap Sass files
Creating a MVC layout page
Summary

Book Details

ISBN 139781785889479
Paperback186 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You

C# 6 and .NET Core 1.0: Modern Cross-Platform Development Book Cover
C# 6 and .NET Core 1.0: Modern Cross-Platform Development
$ 39.99
$ 28.00
Mastering C# and .NET Framework Book Cover
Mastering C# and .NET Framework
$ 35.99
$ 25.20
Learning ASP.NET Core MVC Programming Book Cover
Learning ASP.NET Core MVC Programming
$ 35.99
$ 25.20
ASP.NET Core and Angular 2 Book Cover
ASP.NET Core and Angular 2
$ 35.99
$ 25.20
Learning Underscore.js Book Cover
Learning Underscore.js
$ 31.99
$ 22.40
ASP.NET 3.5 Application Architecture and Design Book Cover
ASP.NET 3.5 Application Architecture and Design
$ 23.99
$ 16.80