ASP.NET MVC Basics Course

Go to class
Write Review

Free Online Course: ASP.NET MVC Basics Course provided by Treehouse is a comprehensive online course, which lasts for 3-4 hours worth of material. The course is taught in English and is free of charge.

Overview
  • ASP.NET MVC is a popular server-side framework developed by Microsoft that is used to build dynamic websites. In this course, you'll learn about the basics of ASP.NET MVC while we build a comic book gallery website using Visual Studio Community. Along the way, you'll learn how to create a new project, add controllers and views, model data, and create repositories.

    What you'll learn

    • Creating a Project Using Visual Studio Community
    • Adding Controllers and Views
    • URL Routing
    • Data Modeling and Repositories
    • Creating List and Detail Pages

Syllabus
  • Project Setup

    We'll start with an overview of the ASP.NET MVC framework and then learn how to create a project using Visual Studio Community. We'll also learn how to run our website so that we can preview it in a browser.

    Chevron 7 steps
    • Introduction

      3:01

    • What is ASP.NET MVC?

      4:51

    • ASP.NET MVC Review

      5 questions

    • Creating a GitHub Repo

      2:58

    • Creating a Project Using Visual Studio

      5:13

    • Running Our Website

      2:00

    • Section Review

      5 questions

    Controllers

    We'll learn how to add a controller to our website. Along the way, we'll take a look at URL routing and the important role that it plays in an MVC website.

    Chevron 8 steps
    • Adding a Controller

      4:29

    • Adding an Action to a Controller

      3:16

    • Creating a Controller

      2 objectives

    • Overview of URL Routing

      3:48

    • URL Routing Review

      5 questions

    • Using Action Result Types

      7:31

    • Using Action Result Types

      1 objective

    • Section Review

      5 questions

    Views

    We'll learn how to add a view to our website. We'll also take a first look at the Razor syntax and update the design of our website.

    Chevron 11 steps
    • Adding a View

      4:03

    • Adding a View Review

      5 questions

    • Using Razor for View Layout

      5:30

    • Using the Razor Syntax

      1 objective

    • Displaying a List with Razor

      4:16

    • Displaying a List of Values

      1 objective

    • Setting Data in the Controller

      5:51

    • Using ViewBag

      2 objectives

    • Adding Design Files

      4:41

    • View Layouts

      5:42

    • Section Review

      5 questions

    Modeling and Presenting Data

    We'll learn how to model data using C# classes and present that data in a strongly typed view. We'll also learn about repositories and how they improve the overall design of our website.

    Chevron 16 steps
    • Adding a Data Model

      4:51

    • Updating the Data Model

      2:39

    • Creating a Data Model

      2 objectives

    • Using Strongly Typed Views

      6:46

    • Using Strongly Typed Views

      2 objectives

    • Improving Our View Layout

      7:45

    • Using Razor to Render Boolean Values

      1 objective

    • Applying Software Design Principles

      3:26

    • Software Design Principles Review

      5 questions

    • Adding the Repository

      7:55

    • Adding Repository Methods

      2 objectives

    • Updating the Controller

      7:16

    • Optional URL Parameters Review

      5 questions

    • Using the Visual Studio Debugger

      7:07

    • Validating a Bug Fix with the Debugger

      5:23

    • Section Review

      5 questions

    Adding a List Page

    We'll learn how to add a list page to our website. Along the way, we'll also learn how to update our default route and create links between the pages in our website.

    Chevron 10 steps
    • Adding a List Controller and View

      4:03

    • Finishing the List View

      4:55

    • Creating a List View

      1 objective

    • Updating the Default Route

      6:07

    • URL Routing Configuration Review

      5 questions

    • Linking Between Views

      7:01

    • Creating Hyperlinks

      1 objective

    • Improving Navigation

      5:45

    • Wrap Up

      2:49

    • Section Review

      5 questions