Programmer's Picnic · Learn With Champak

Razor: 0 → Infinity

One concept at a time. Start from zero, build confidence, then move towards real-world apps.

Start Lesson 00 →

What is Razor?

Razor combines HTML and C# to generate pages. Razor syntax, Razor Pages and Blazor have different roles. We explain the differences before writing code.

First learn the basics in ASP.NET Core Foundations.

Available beginner lessons

Lesson 00

What is Razor?

Explanations, examples and practice →

Lesson 01

Create a Razor Pages project

Explanations, examples and practice →

Lesson 02

Variables, conditions and loops

Explanations, examples and practice →

Lesson 03

PageModel and OnGet

Explanations, examples and practice →

Lesson 04

Forms, binding and POST

Explanations, examples and practice →

Coming later

Layouts, partials, Tag Helpers, validation, dependency injection, database CRUD, authentication, security, testing, deployment, Razor components and Blazor.

Official references: Microsoft Razor Pages tutorial · Download .NET