Learn ASP.NET Core MVC

Learn ASP.NET Core MVC

Arnaud Weil
This is a sample of the book's content.Buy on Leanpub

Table of Contents

Learn ASP.NET Core MVC

  • Introduction
    • What this book is not
    • Prerequisites
    • How to read this book
    • Tools you need
    • Source code
  • 1. Why ASP.NET Core ?
    • 1.1 What is it ?
    • 1.2 Why use it ?
    • 1.3 Competing technologies
  • 2. ASP.NET Core at its simplest
    • 2.1 Setting up the server
    • 2.2 Very basic Startup configuration
    • 2.3 Barebone configuration
    • 2.4 ASP.NET MVC comes in
  • 3. Creating our Web Site
    • 3.1 Visual Studio scaffolding
    • 3.2 Quick facts about that template
  • 4. ASP.NET MVC inner workings
    • 4.1 Principles
    • 4.2 View
    • 4.3 Bootstrap
    • 4.4 Controller
    • 4.5 It’s your turn to code: do-it-yourself
    • 4.6 Exercise - Create the application
    • 4.7 Exercise solution
  • 5. Razor
    • 5.1 Razor syntax
    • 5.2 Exercise - Add code to the home page
    • 5.3 Exercise solution
    • 5.4 Layout views
    • 5.5 Exercise - Remove some links
    • 5.6 Exercise solution
    • 5.7 Helpers
    • 5.8 Partial views
  • 6. Understanding ASP.NET MVC
    • 6.1 Flashback
    • 6.2 Routing
    • 6.3 Controllers
    • 6.4 Be lazy
    • 6.5 Let’s go all the way
  • 7. Typing things up
    • 7.1 The problem with ViewBag and ViewData
    • 7.2 Using and typing the model
    • 7.3 Conventions and simplicity: introducing the ViewModel
  • 8. Dependency Injection (DI)
    • 8.1 DI steps
    • 8.2 Services registration
    • 8.3 Getting services through injection
    • 8.4 Extension methods for dependency injection
    • 8.5 Wrapping it up
  • 9. Entity Framework Core models
    • 9.1 Exercise - Create the Product model and DbContext
    • 9.2 Exercise solution
    • 9.3 Exercise - Add code that creates a database with some products
    • 9.4 Exercise solution
    • 9.5 Exercise - Display a products list
    • 9.6 Exercise solution
  • 10. Updating server data
    • 10.1 Action parameters
    • 10.2 Word of caution about URLs
    • 10.3 Exercise - Display product details
    • 10.4 Exercise solution
    • 10.5 HTTP Post parameters
    • 10.6 Passing a full blown object
    • 10.7 Sit and watch - Basic product calculator
    • 10.8 Exercise - Add a search box to the products list
    • 10.9 Exercise solution
  • 11. Updating data scenario
    • 11.1 Steps
    • 11.2 Controller
    • 11.3 Automated generation of controller and views
    • 11.4 Exercise - Create the products management back-office
    • 11.5 Exercise solution - Create the products management back-office
  • 12. Doing more with controllers and actions
    • 12.1 Actions can generate more than views
    • 12.2 Exercise - Add images to the products
    • 12.3 Exercise solution - Add images to the products
    • 12.4 Input validation
  • 13. Basic security
    • 13.1 Preventing Cross-Site Scripting
    • 13.2 Rejecting extra fields
    • 13.3 Authenticating users
    • 13.4 Exercise - Secure the back-office
    • 13.5 Exercise solution - Secure the back-office
  • 14. State management
    • 14.1 State stores
    • 14.2 Session state
    • 14.3 Exercise - Add products to a basket
    • 14.4 Exercise solution - Add products to a basket
    • 14.5 Exercise - Basket contents
    • 14.6 Exercise solution - Basket contents
  • 15. Web API
    • 15.1 Use cases
    • 15.2 Creating an API is simple
    • 15.3 API results format
  • 16. Going further
    • 16.1 Creating Razor helpers
    • 16.2 Display and edit templates
  • Definitions
  • A word from the author
  • The Learn Collection
Learn ASP.NET Core MVC/overview

Learn ASP.NET Core MVC

course_overview

Fast self-teaching ASP.NET Core 1.1 MVC in a week with Visual Studio 2017.

count_chapters
begin_reading
download
p_implied_book_part_name

Learn ASP.NET Core MVC20 chapters

Begin ›
  1. Introduction

  2. 1. Why ASP.NET Core ?

  3. 2. ASP.NET Core at its simplest

  4. 3. Creating our Web Site

  5. 4. ASP.NET MVC inner workings

  6. 5. Razor

  7. 6. Understanding ASP.NET MVC

  8. 7. Typing things up

  9. 8. Dependency Injection (DI)

  10. 9. Entity Framework Core models

  11. 10. Updating server data

  12. 11. Updating data scenario

  13. 12. Doing more with controllers and actions

  14. 13. Basic security

  15. 14. State management

  16. 15. Web API

  17. 16. Going further

  18. Definitions

  19. A word from the author

  20. The Learn Collection