Skills Expanded

Building a Task Tracking App with Razor Pages

What you'll learn

In this project, you'll use Razor Pages to build an application that allows us to create tasks and save them to a database, enforces data validation for those tasks, and displays them in a table on the app home page.

Table of contents

Setup
15m
  • Learn how to setup and configure a local development environment to be able to complete the project tasks.
Creating the Layout and Navigation
15m
  • Create the application pages, and add links and routes to navigate between them.
Building the Task Form
30m
  • Build the form and handler method that will allow us to create new Tasks.
Saving Data to the Database
25m
  • Create and register the data context class, and persist the new tasks to the database.
Displaying Data on the Home Page
25m
  • Retrieve and display the created tasks in a table on the home page.
Adding Validation to the Create Form
15m
  • Add validation to the Task form to improve data integrity.

About the author

Alex Wolf works as a .NET and Azure Content Developer at Microsoft, and is passionate about learning and teaching software development. He has over a decade of experience and multiple certifications in the .NET ecosystem and related technologies. He is also highly engaged in DevOps and Cloud technologies to improve development workflows and infrastructure. Alex has worked for companies of nearly every size, ranging from small start-ups to very large enterprises. He also maintains a hobbyist ... more

Ready to upskill? Get started