Skip to content
Learn Netverks

Lesson

Step 1/36 3% through track

intro

Introduction to ASP.NET

Last reviewed May 28, 2026 Content v20260528
Track mode
server_compiled
Means
Compiled runner
Reading
~3 min
Level
beginner

This lesson

An orientation to the ASP.NET track—how the server playground works, core vocabulary, and what you will practice next.

You need a clear map of the ASP.NET track so middleware, dependency injection, and the .NET project layout do not feel like magic.

You will apply Introduction to ASP.NET in contexts like: Line-of-business APIs, intranets, BFF layers, and cloud-hosted services on Linux or Windows.

Write C# (top-level or Program class), click Run on server—the dev runner uses dotnet build/run on a temp net8 project (requires .NET SDK; LEARNING_RUNNER_ENABLED=true). Also read the interview prep blocks.

After HTML fundamentals and basic programming concepts—before or alongside SQL.

How this ASP.NET track works

  • C# in the playground — runnable code uses top-level statements with Console.WriteLine and LINQ (using System.Linq). Click Run to compile and execute via dotnet build/run.
  • ASP.NET Core in prose — Razor, Kestrel, middleware, EF Core migrations, and Web API are taught with file trees and dotnet new web commands. Install the .NET SDK locally for full MVC and API practice.
  • Prerequisites — finish C# (types, classes, LINQ) and JavaScript (async, fetch). Compare backend context with Java and Django request–response lessons.

The runner does not host Kestrel or EF migrations—lessons simulate web patterns in C# so concepts stick before you run dotnet new web on your machine.

Install on your device (macOS, Linux, Windows)

Install .NET 8 SDK for C# and ASP.NET Core on your machine.

macOS

  1. brew install --cask dotnet-sdk or script from dotnet.microsoft.com.

Linux

  1. Follow Microsoft docs for your distro: Install .NET on Linux (apt/dnf packages dotnet-sdk-8.0).

Windows

  1. winget install Microsoft.DotNet.SDK.8

Verify: dotnet --version shows 8.x.

Run code on this site (Backend & language playgrounds)

  1. Clone or open this project locally; copy .env.example to .env.
  2. Ensure LEARNING_RUNNER_ENABLED=true and LEARNING_RUNNER_URL=http://127.0.0.1:9999/v1/execute.
  3. Terminal 1: php artisan serve (or composer run dev for Laravel + Vite + runner together).
  4. Terminal 2: npm run runner — keep it running while you click Run on server.

New web app: dotnet new web -n MySite && cd MySite && dotnet run

ASP.NET Core is Microsoft's cross-platform framework for building web apps, REST APIs, and real-time services on the .NET runtime. It combines C# type safety, high throughput (Kestrel), and integrated tooling—Visual Studio, VS Code, and the dotnet CLI.

How this track differs from plain C#

After the C# track, you know types, classes, LINQ, and async. ASP.NET adds a web pipeline—middleware, routing, controllers, Razor views, EF Core, and authentication—so HTTP requests become structured application code.

Compare with Django and Java/Spring: all three handle HTTP and databases, but ASP.NET Core targets .NET teams, Azure deployments, and strongly typed APIs from day one.

What you will learn

  • C# refresher tailored to web patterns (LINQ, async, DI-friendly classes)
  • Project structure: Program.cs, configuration, middleware, routing
  • MVC and Razor Pages: controllers, view models, tag helpers, validation
  • EF Core: entities, DbContext, migrations, relationships, repositories
  • Web API, minimal APIs, authentication, and production habits

Playground setup

This topic uses the server_compiled profile: runnable code is C# top-level statements with Console.WriteLine. Lessons simulate routing, DI, and EF ideas in plain C#. Full ASP.NET Core (dotnet new web, Kestrel) runs on your local machine—file trees and commands in prose teach the real workflow.

Self-check

  1. In one sentence, what problem does ASP.NET Core solve for web developers?
  2. Why is C# a recommended prerequisite before this track?

Interview prep

What is ASP.NET Core in one sentence?

ASP.NET Core is Microsoft's cross-platform web framework on .NET for building MVC sites, Razor Pages, and JSON APIs with integrated DI, configuration, middleware, and EF Core support.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Why ASP.NET Core?
  • Azure vs on-prem first?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump