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

This ebook is included in a Mapt subscription
Pieter van der Westhuizen

3 customer reviews
Combine the power of ASP.NET Core with Bootstrap 4 to build elegant, responsive web apps
$10.00
$39.99
RRP $31.99
RRP $39.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
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
$ 10.00
ASP.NET Core and Angular 2 Book Cover
ASP.NET Core and Angular 2
$ 10.00
ASP.NET 3.5 Application Architecture and Design Book Cover
ASP.NET 3.5 Application Architecture and Design
$ 10.00