Skip to content
IT glossary
BackendUpdated December 3, 2026

ASP.NET

Microsoft’s web framework family lets developers build websites and APIs on .NET, usually in C#. ASP.NET Core is the modern, cross-platform framework; classic ASP.NET runs on .NET Framework.

What ASP.NET does

When a browser opens a page or a mobile app asks for order details, it sends an HTTP request. ASP.NET gives the server-side application a way to match that request to code, pass in the relevant data, and send back a response such as HTML or JSON. You write the application logic; the framework handles much of the HTTP plumbing.

Check which framework someone means when they say “ASP.NET.” Classic ASP.NET runs on .NET Framework on Windows and includes technologies such as Web Forms, ASP.NET MVC 5, and Web API 2. Most new .NET web applications use ASP.NET Core, which runs on Windows, Linux, and macOS. An older Web Forms application cannot move to ASP.NET Core just by changing its target framework: ASP.NET Core does not implement the Web Forms programming model.

From request to response

In a typical ASP.NET Core deployment, Kestrel receives requests directly or behind a reverse proxy. Each request enters a pipeline of middleware. A middleware component can call the next component, wrap what happens downstream, or end the request early. That is why an exception handler usually goes early in the pipeline: it can catch exceptions thrown later in it.

Routing selects an endpoint based on the request path and HTTP method. The endpoint might be a controller action or a Minimal API handler. ASP.NET Core can bind request data, such as a route value, to a handler parameter. The handler can then call application services supplied by the built-in dependency injection container.

Example: a Minimal API endpoint

var app = WebApplication.CreateBuilder(args).Build();

app.MapGet("/orders/{id:int}", (int id) =>
    new { id, status = "paid" });

app.Run();

GET /orders/42 returns 200 OK and the JSON {"id":42,"status":"paid"}. The int constraint affects route matching: /orders/abc does not match this endpoint and returns 404 Not Found if nothing else matches. The example returns a hard-coded status; it does not look up an order.

Where it fits

ASP.NET Core can serve an API for a mobile client, run an internal service, or render HTML on the server with Razor Pages or MVC views. Minimal APIs and controllers are both ways to define endpoints and can coexist in one application. Entity Framework Core is a separate data access tool, not a requirement for building an ASP.NET Core app.

What comes up in interviews

Expect to walk through a request and explain where routing, authentication, and authorization fit. A practical follow-up is why authentication normally runs before authorization: access rules often need to know who the caller is. For dependency injection, know the difference between transient, scoped, and singleton lifetimes. In particular, explain why keeping a request-scoped service in a singleton can make that service outlive the request it belongs to.