Hands-On Introduction: ASP.NET Razor Pages

Hands-On Introduction: ASP.NET Razor Pages

1h 39mIntermediate2022-11-09

Authors

Walt Ritscher

Walt Ritscher

Programmer, UI Designer, Staff Instructor at LinkedIn Learning

Course details

Looking to get up to speed with ASP.NET? In this practical course, which was designed with experienced web developers in mind, learn how to create an ASP.NET app using Razor Pages. Instructor Walt Ritscher covers what you need to know to build dynamic, data-driven content with Razor Pages, including how to connect pages to data sources, use parameters to customize data queries, and leverage TagHelpers—HTML attributes that automate the creation of dynamic content.

Skills covered

ASP.NETFront-End Web DevelopmentWeb DevelopmentProgramming LanguagesMicrosoftSoftware DevelopmentOne-Off

Concepts

Introduction

  • Hands-on with ASP.NET Razor Pages
  • Using GitHub Codespaces with this course

Picking Apart ASP.NET Razor Pages

  • ASP.NET projects in GitHub Codespaces
  • Static content and Razor Pages
  • Routing and Razor Pages
  • Writing code in a Razor Page
  • Write code in the PageModel class

Model Binding

  • Create pages with a namespace
  • Create a model class
  • Model binding - Automate data capture
  • Use routes with model binding
  • Model binding into the model class
  • Method parameters and model binding

Building New Code

  • Using TagHelpers to generate HTML elements
  • Create a basic HTML form
  • Add model and form code
  • Use data annotations for readability
  • Add SelectList
  • Add SelectList code

Conclusion

  • Next steps
40,000 Toman