ASP.NET MVC 5 Essential Training

ASP.NET MVC 5 Essential Training

2h 38mBeginner2019-08-12

Authors

Jonathan "J." Tower

Jonathan "J." Tower

Microsoft MVP, Software Architect

Course details

ASP.NET MVC is the tool of choice for building modern, dynamic, and scalable web applications. MVC 5 includes features that enable rapid, test-driven development. In this course, Jonathan "J." Tower teaches the essentials of the ASP.NET MVC 5 framework. Learn what models, views, and controllers are and how data is passed between them. See how controller classes and their action methods are used to organize your application's logic; how to use strongly typed models in your views; how to build models with Entity Framework; and how to create your own custom validation attributes. He also shows how to create and perform unit tests to ensure you build software that works the way it's supposed to.

Learning objectives
Creating a new ASP.NET MVC 5 project
Using controllers and action methods
Creating attribute routes
Strongly typed models
Building HTML with HtmlHelpers
Sharing views
Building models with Entity Framework
Unit testing code

Skills covered

ASP.NET MVCASP.NETBack-End Web DevelopmentFull-Stack Web DevelopmentFront-End Web DevelopmentEssential TrainingWeb DevelopmentMicrosoft

Concepts

Introduction

  • Powerful web applications with MVC 5
  • What you should know
  • Tools used
  • Demo project overview

Getting Started with MVC 5

  • Model-view-controller (MVC) pattern
  • Advantages of MVC
  • Visual Studio new project dialog
  • Walking through the new project template
  • How MVC services requests
  • Startup configuration and global routing

Startup and Configuration

  • Handling events in Global.asax
  • App config with App Start

Controllers

  • Putting the pieces together
  • Using controllers and action methods
  • Returning a view response
  • Using other response helpers
  • Attribute routing
  • Advanced attribute routing

Filters

  • Securing your app with filters
  • Customizing your actions with filters
  • Altering action results with filters
  • Handling exceptions with filters

Views

  • View folder organized by convention
  • Razor - Transitioning from code to markup
  • Implicit explicit expressions and blocks
  • Adding comments to Razor
  • Handling form posts with IsPost
  • Passing data from the controller

Strongly Typed Models

  • Bringing models and views together
  • Building HTML with HTML Helpers
  • Advanced use of HTML Helpers
  • Define your own inline HTML Helpers
  • Creating custom HTML Helpers

Sharing Views

  • Sharing layouts
  • Using bundles and sections in layouts
  • Rendering partial views
  • Escaping the @ symbol

Models

  • Data models vs. view models
  • Building models with Entity Framework
  • Validation with data annotations
  • Validation with ModelState
  • Displaying validation in the view
  • Building custom validation attributes

Unit Testing

  • Testing a controller's selected view
  • Testing a controller's view data

Conclusion

  • Next steps
80,000 Toman