Web for C# and .NETs
ASP.NET Core is the cross-platform framework in .NET for building web apps and APIs. Requests flow through a middleware pipeline to controllers or minimal API endpoints, with built-in dependency injection, configuration, model binding, validation and logging. It is used for REST services, server-rendered sites and real-time features with SignalR.
Stage: Workloads · Part of the C# and .NET roadmap · Last reviewed 19 November 2026
What to learn in Web
- Create a minimal API endpoint that returns JSON
- Register services in the dependency injection container with scoped lifetime
- Add middleware for logging, authentication or error handling
- Bind and validate request bodies with data annotations
- Read settings from appsettings.json and environment variables
Web interview questions
What is middleware in ASP.NET Core?
Middleware is a component in the request pipeline that can inspect or change the request, call the next component, then act on the response. Examples are authentication, routing, CORS and exception handling. The order in which you register them matters.
What is the difference between transient, scoped and singleton services?
A transient service is created each time it is requested. A scoped service is created once per scope, which in web apps means per HTTP request. A singleton is created once for the whole application, so it must be thread safe.
Where Web fits in the C# and .NET roadmap
Web belongs to the Workloads stage (beginner level). What you can build.
Other units in this stage
Back to the full C# and .NET roadmap