Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Provider Logo

ASP.NET Core: Razor Pages

via LinkedIn Learning

Overview

Build ASP.NET applications without an MVC framework. Learn how to use Razor Pages to build dynamically rendered pages and secure, interactive forms for your apps.

Razor Pages is an exciting new product released with ASP.NET Core 2, which makes building webpages without an MVC framework quick and easy. You can use it alone or in combination with ASP.NET MVC. In this course with Microsoft MVP Jess Chadwick, learn how to create a Razor Pages application, use the page model, manage dependencies, and secure your app. Jess helps you get your first dynamically rendered page up and running with Razor Pages. He demonstrates the use of layouts and classes to optimize pages for maintainability, and shows how to create simple HTML forms, validate and process user input, and lock down sections of your app for maximum security.

Syllabus

Introduction
  • Welcome
  • What you should know
  • Using the exercise files
1. Razor Pages Intro
  • What is Razor Pages?
  • Development environment setup
  • Exploring the sample application
2. Razor Pages Basics
  • Creating a new Razor Pages application
  • Creating Razor Pages
  • Serving static content
  • Using the Razor syntax to render dynamic content
  • Adding code blocks to a Razor page
  • Passing parameters in the URL
3. Reusing Markup with Layouts
  • Reusing shared markup with layouts
  • Using sections in Razor layouts
  • Sharing data between layouts and views
  • Executing code before every page
4. Building Maintainable Applications
  • Using loose coupling for maintainability
  • Using a page model to keep logic out of the view
  • Increasing maintainability with dependency injection
5. Working with Data
  • Building a form with tag helpers
  • Handling HTTP verbs with custom logic
  • Automatically populating objects with request data
  • Adding custom handlers beyond GET and POST
  • Challenge: Process an uploaded image file
  • Solution: Process an uploaded image file
6. Validating User Inputs and Securing Your Application from Unauthorized Users
  • Validating form post data
  • Displaying validation errors
  • Securing your pages from unauthorized access
  • Implementing basic cookie-based authentication
  • Next steps

Taught by

Jess Chadwick

Related Courses

Reviews

0.0 rating, based on 0 reviews

Start your review of ASP.NET Core: Razor Pages

Never stop learning Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free