liveBook · Manning

Web application

As explained in ASP.NET Core in Action, 3e

A web application is software that provides functionality to users through web technologies and a browser or other web client.

A web application is software that provides functionality through web technologies and a browser or other web client. A user navigates to a URL, and the client sends an HTTP request to the server hosting the application. The application processes the request and returns an HTTP response containing a status code and, often, generated HTML. section 1.4.1

In ASP.NET Core, the application runs with a web server—typically Kestrel—inside a .NET process. Kestrel receives requests and returns responses, while the same application can run directly on a network or behind a reverse proxy such as IIS, NGINX, Apache, or a managed PaaS proxy. section 27.1

Common ASP.NET Core web-application forms include:

  • Razor Pages and MVC controllers build server-rendered, page-based applications that return HTML. section 19.2 section 1.6
  • Minimal APIs and web APIs build RESTful or HTTP APIs rather than browser-oriented pages. section 1.6
  • Blazor WebAssembly runs client-side in the browser, while Blazor Server sends stateful UI updates through a WebSocket connection. section 1.6

A small MVC web application

Create an ASP.NET Core Web App (Model-View-Controller) project in Visual Studio or with dotnet new mvc. The template configures MVC controllers with Razor views, maps a conventional route such as {controller=Home}/{action=Index}/{id?}, and produces a server-rendered application that can be run with F5 or dotnet run. section 19.2

Figure 1.2 Requesting a web page. The user starts by requesting a web page, which causes an HTTP request to be sent to the server. The server interprets the request, generates the necessary HTML, and sends it back in an HTTP response. Then the browser can display the web page.
CH01_F02_Lock3

Follow the request from a browser to the server, then trace the generated HTML back to the browser as an HTTP response. section 1.4.1

How ASP.NET Core in Action, 3e covers it

How deep it goes
Explains URLs, HTTP messages, hosting, templates, and application forms, but stops short of detailed HTTP protocol internals.
Examples
Uses a Hello World application, an MVC template, conventional routing, and a browser-to-server request diagram.
What it assumes
Assumes basic URL and browser use while introducing HTTP, application templates, hosting, and ASP.NET Core structure.
What you can do after
Build an ASP.NET Core web application from a Visual Studio or .NET CLI template and run it locally.
How it connects
Connects browsers, HTTP, DNS, web servers, MVC, Razor Pages, APIs, Blazor, and reverse proxies.

Also explained in

Compare how 8 books explain web application →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.