ASP.NET and Blazor
From Web Forms and MVC to ASP.NET Core, minimal APIs, SignalR, Blazor and microservices, web development on .NET as told through the free samples of Leanpub books.
Created from the free samples of 8 Leanpub books and the descriptions and tables of contents of 18 more, with every source cited.
ASP.NET is the family of web frameworks on the .NET platform, used to build websites and programming interfaces in C#. A developer who already knows .NET can carry that knowledge of the language and its libraries into web work, which is the reason the books most often give for choosing it.[2] Blazor is the member of the family for interactive user interfaces: pages are assembled from components written in C#, with less reliance on JavaScript.[22]
The family has two generations. The original framework dates from 2001 and runs only on Windows. ASP.NET Core is its cross-platform successor, running on Windows, Linux and macOS and in containers, and is the one recommended for new projects.[3] Within each generation there are several ways to build an application: Web Forms and MVC in the first; MVC, minimal APIs, the SignalR library for real-time messaging and Blazor in the second. Much of what the books teach is which one to use.[2][3]
This article covers that history, the MVC pattern, web APIs and the minimal style, real-time communication with SignalR, Blazor, microservices and the modular monolith, and data access. Its sources are the free samples of eight Leanpub books and the descriptions and tables of contents of eighteen more, published between 2014 and 2026. The pool has no sample from a book on Blazor, so that section rests on descriptions and contents alone. The older books teach versions long since replaced, and each book's year is given.
Where to start
A C# developer new to web work has short first books. Learn ASP.NET MVC (2017) and Learn ASP.NET Core MVC (2020) are by an author who set out to write the thinnest book that would get a reader to a first application, each with exercises that build a small shop; the first teaches MVC 5 on the old framework and the second an early version of ASP.NET Core, so both now serve for the concepts more than the details.[2][3] ASP.NET Core MVC Crash Course: Learn to build fast and secure web applications with ASP.NET MVC (2026) is a recent equivalent that teaches ASP.NET Core 8 MVC through three small projects.[13] A reader who is also new to the language can begin with C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals - Eighth Edition (2025), most of which is C# and .NET, with closing chapters that introduce websites, web services and Blazor.[14]
For programming interfaces, the lab-based Hallo .NET 8.0: Practical ASP.NET Core Minimal API (2023) and Hallo .NET 9.0: Practical ASP.NET Core Minimal API (2025) start from a first endpoint, and Modular Minimal API .NET 10 (2026) is written for beginners and junior back-end developers.[15][16][5] Web API Development with ASP.NET Core 8 (2024) is the broad treatment.[17]
For Blazor, Hallo Blazor: Building Modern Full-Stack Web Apps with .NET 9.0 (2025) is a beginner's course of exercises, also aimed at people coming from JavaScript frameworks, and Blazor Web Development Cookbook (2025) is a book of recipes for developers who already build with it.[21][22] SignalR on .NET 6 - the Complete Guide (2022) assumes familiarity with ASP.NET Core and is both a tutorial and a reference.[1]
From Web Forms to ASP.NET Core
The first way to build an ASP.NET site was Web Forms, which one author describes as suited to people who knew little of HTTP and HTML and had experience of desktop applications: pages were built from server controls in the manner of a desktop form.[2] ASP.NET MVC came later and worked with the web's own model of requests and responses. The two could be mixed in one application, and usually were when an old Web Forms site had to gain new features.[2]
By the time of Learn ASP.NET Core MVC, the author was calling the original framework the legacy version, full of features and tied to Windows, to be used mostly when existing code had to be ported. ASP.NET Core was the choice for new work: cross-platform, efficient, and able to produce both HTML pages and programming interfaces.[3] The History of .NET Web Development 4th Edition (2026) is given wholly to this story. Its description says it follows the platform release by release from the early 2000s to .NET 10, through the move to cloud-native architecture and the arrival of abstractions for artificial intelligence.[9] It has no sample or table of contents.
The older generation has not gone away. Mastering ASP.Net From Beginner To Web Developer (2026) is a recent textbook in syllabus form that teaches Web Forms, server controls, state management, database access and the older MVC, for students and people starting out.[10] Evolving ASP.net Applications (2016) takes one real legacy application apart and improves it in steps: converting the project type, updating dependencies, closing security holes such as SQL injection and cross-site scripting, and adding MVC beside the old pages.[11] Its description calls it work in progress.
MVC
MVC divides a web application into models, which hold data and rules, views, which render HTML, and controllers, which receive a request and decide what to show. In ASP.NET a route maps an address to an action on a controller, and the framework finds the view that matches by a convention of folders and file names.[2] Views are written in Razor, a compact syntax that mixes HTML with C#.[2] The project template of the period produced a working site with pages, a menu and user registration backed by a local database after a few choices in a dialogue.[2]
Learn ASP.NET Core MVC shows what lies beneath in ASP.NET Core. An application needs two classes, one that starts a web server, Kestrel, which ships with the framework, and one that configures how requests are handled. Handling is done by middleware, code that receives each incoming request and can answer it; the author writes one by hand that replies with a string, observes that a real application built that way would become impossible to maintain, and then adds MVC, itself a middleware, in one line.[3] Dependency injection is supported from the start.[3] The book targets version 1.1, whose start-up code has since been simplified.
The same author is even-handed about whether to use the framework at all. Other stacks allow applications to be developed in much the same way, and the choice often comes down to belief or preference, though there can be good reasons: someone who knows JavaScript and HTTP and nothing of .NET will probably find a JavaScript server framework easier.[2][3] ASP.NET Core MVC Crash Course: Learn to build fast and secure web applications with ASP.NET MVC shows the pattern at its current version through a list of restaurants with search, a notepad that keeps each user's documents, and a shop that takes card payments.[13]
Two books concern the look of such applications. Bootstrapping MVC (2014) ties features of MVC, such as display and editor templates and helper extensions, to components of the Bootstrap front-end framework.[12] Bootstrap for .NET Devs (2019) deals with a practical irritation of its time, project templates and generated forms that shipped with an older Bootstrap than the current one, and gives each fix for both MVC 5 and ASP.NET Core, on the ground that many organisations still maintain applications on the older stack.[6]
Web APIs and the minimal style
Much ASP.NET work produces no HTML at all and serves data to browsers, mobile applications and other services. For years this was done with controllers. Modular Minimal API .NET 10 describes what that involved, controller classes, base classes, attributes and routing configuration, and calls it more ceremony than a simple service needs.[5] Minimal APIs are the answer: an endpoint is declared by mapping an address to a function, and a complete web server fits in four lines. The book explains that such an endpoint is registered directly in the request pipeline, with its parameters bound by generated code and not by reflection, and reports that this handles more requests with less memory than controllers.[5]
Three books teach the style through exercises. Hallo .NET 8.0: Practical ASP.NET Core Minimal API has twenty labs on .NET 8 covering data access, security, monitoring and deployment, and Hallo .NET 9.0: Practical ASP.NET Core Minimal API has seven on .NET 9, using the interface documentation built into that release.[15][16] .NET 9 for Web Developers (2026) grows one task-tracking application from a console program into a web API with a database and a desktop client; its sample holds the prologue and contents.[7]
Web API Development with ASP.NET Core 8 sets the styles of interface side by side: REST, gRPC, GraphQL and SignalR, with data access, security, testing, delivery pipelines and observability.[17] API Versioning for The Real World (2024) takes one problem, changing an interface that others already depend on: when to version, the technical approaches, the set-up in ASP.NET, and how to know when an old version can be retired.[18] C# & AI Masterclass: Building AI Web APIs with ASP.NET Core. Serving Models and Chat Endpoints (2026) teaches the same features through the needs of back ends for artificial intelligence, such as streaming a model's output and limiting the cost of calls.[19] None of the three has a sample.
Real-time communication with SignalR
The ordinary web exchange is a request from the client and a response from the server, which serves badly when the server has news the client did not ask for: a chat message, a reading from a device, a change on a dashboard. SignalR on .NET 6 - the Complete Guide sets out the alternatives. A client can keep asking, which wastes bandwidth and complicates the code. It can use the WebSocket protocol, which was designed for traffic in both directions and is efficient, but which deals in raw bytes and leaves the assembling of messages and the watching of the connection to the programmer.[1]
SignalR, a library built into ASP.NET Core, hides that work. The server exposes ordinary C# methods on a class called a hub, a client calls them by name, and the server in turn triggers named listeners on its clients, so that the exchange reads like one part of a program calling another.[1] It uses WebSocket where it can and falls back to server-sent events and then to long polling, the least efficient and the most widely supported, without any change to the application's code.[1]
The book builds one solution through its chapters: a first hub, clients in the browser and in separate applications, groups of clients, streaming, a more compact message format, security and scaling out to several servers. It includes a case its author met in practice and found undocumented, the connecting of a plain WebSocket client to a hub.[1] The course SignalR on ASP.NET Core Made Easy covers the fundamentals of the same library in a shorter form, with the same hub used from JavaScript, .NET, Blazor and raw WebSocket clients.[20]
Blazor
Blazor lets the interactive part of a web application be written in C#. A page is built from components, each combining markup and code, which can be given parameters and reused. The framework can run them on the server, in the browser, or in a mixture chosen page by page, which Blazor Web Development Cookbook presents as the means of using the server's power while keeping the feel of a local application.[22] No book on Blazor in the pool has a sample, and what follows comes from descriptions and tables of contents.
Hallo Blazor: Building Modern Full-Stack Web Apps with .NET 9.0 teaches it in twenty-five exercises on .NET 9: components, data binding, routing, forms, the management of state, styling, calls to interfaces and databases, and several on applications that install like native ones and work offline.[21] Blazor Web Development Cookbook goes through components, binding, events, grids, state, forms and validation, security and routing as recipes, and ends with a chapter on features backed by a language model.[22] Blazor QuickGrid: A Monograph (2025) is of another kind. It reads the source of one component, the data grid supplied with the framework, and analyses its architecture, its data providers and columns, its handling of long lists and paging, and its use of JavaScript, for senior developers who want to learn how a complex component is made; its author says plainly that it is not a book of ready samples.[23]
Blazor also appears inside wider books. Apps and Services with .NET 8 - Second Edition (2025) gives it a chapter among sixteen on data, services and user interfaces, and Software That Lasts (2026) builds the interface of its teaching application with it, in a book otherwise about design and architecture.[24][25]
Microservices and the modular monolith
ASP.NET Core arrived in the years when microservices were fashionable, and several books pair the two. Learn Microservices - ASP.NET Core and Docker (2018) gives the reasons for the architecture as requirements: several front ends for the same business processes, the need to run on more machines when demand rises, and copies across machines or data centres so that one failure does not stop the service. A monolith bundles its parts into one unit and meets these with difficulty; a microservice architecture splits the application into services that each meet a functional need and talk over HTTP.[4] The author is frank about the cost. Complexity grows faster than in a monolith as needs grow, and his advice is to adopt the architecture when those requirements are real and otherwise to keep the monolith.[4] The book has the reader build two services that depend on each other and run them in containers.[4] Microservices using ASP.NET Core (2019) follows a single service from an empty project to a running container.[26]
A book of 2026 takes the cautious position as its starting point. Modular Minimal API .NET 10 describes the plain monolith as code so intertwined that a change to one feature breaks another, and microservices as a distributed burden of network failures, transactions across services and deployment pipelines that is too much for a small team. Its middle course is the modular monolith: one application and one database, divided inside into modules that know nothing of each other's workings and communicate through declared interfaces, so that a module could later be cut out as a service.[5] The book recommends it for new projects and small or medium teams, and discloses that it was written with the assistance of AI.[5]
Data access and architecture
Nearly every book in the pool stores its data through Entity Framework Core, the object-relational mapper that accompanies ASP.NET Core, and the usual database is the vendor's own.[15][7] The modular monolith book chooses PostgreSQL instead and argues the case: no licence fees, easy to run in a container, columns that store and index JSON, and the freedom to run on any cloud.[5]
From Core to Contract (2026) is the strictest on where data access belongs. It is the second of three volumes that build the back end of one fictional industrial system, and it adds a database and a secured web interface to a core of business rules written earlier without either, keeping framework code out of that core. Its sample opens with a table of everything the first volume promised and did not build, and has the repository pass against a real database the same tests its in-memory stand-in passed.[8] The sample covers persistence only and its pages are marked as awaiting a first verified build.
Questions about ASP.NET and Blazor
Which ASP.NET book should I start with?
A C# developer new to web work can start with ASP.NET Core MVC Crash Course: Learn to build fast and secure web applications with ASP.NET MVC (2026), which teaches ASP.NET Core 8 MVC through three small projects.[13] For programming interfaces, Hallo .NET 9.0: Practical ASP.NET Core Minimal API (2025) begins from a first endpoint.[16] Learn ASP.NET Core MVC (2020) is a short introduction whose version is old and whose explanation of the framework's parts still serves.[3]
What is the difference between ASP.NET and ASP.NET Core?
What is a minimal API?
What is SignalR used for?
SignalR is a library in ASP.NET Core for real-time communication in both directions between a server and its clients, as in chat, dashboards and the control of devices.[1] It uses the WebSocket protocol where it can and falls back to server-sent events and long polling without a change to the application's code.[1]
What is Blazor?
Should I build microservices or a monolith with ASP.NET Core?
The books advise caution. One recommends microservices only when there are real requirements for several front ends, scaling and replication, and a monolith otherwise.[4] Another proposes a modular monolith, one application divided into independent modules, for new projects and small or medium teams.[5]
Sources
Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.
- 1.SignalR on .NET 6 - the Complete Guide, Fiodar Sazanavets, Awal Kamin Salifu: The easiest way to enable real-time two-way HTTP communication on .NET 6 Free sample: the introduction on real-time communication, WebSocket and SignalR, the outline of the chapters and the start of the setup. 2022. Free sample: PDF · EPUB
- 2.Learn ASP.NET MVC, Arnaud Weil: Be ready for coding away next week using ASP.NET MVC 5 and Visual Studio 2015 Free sample: the introduction, the place of MVC among the ASP.NET technologies, a first project, and the start of routes, controllers and views. 2017. Free sample: PDF · EPUB
- 3.Learn ASP.NET Core MVC, Arnaud Weil: Be ready next week using Visual Studio 2017 Free sample: the introduction, ASP.NET Core compared with the older framework, a minimal host with middleware, and a first project. 2020. Free sample: PDF · EPUB
- 4.Learn Microservices - ASP.NET Core and Docker, Arnaud Weil: Be ready for coding away next week Free sample: the introduction, the case for and against microservices, and a primer on HTTP. 2018. Free sample: PDF · EPUB
- 5.Modular Minimal API .NET 10, Afandy: A Step-by-Step Guide to Building Professional, Scalable, and Production-Ready Backend Systems Free sample: the preface and the first section on .NET 10, minimal APIs, the choice of database and the modular monolith. 2026. Free sample: PDF
- 6.Bootstrap for .NET Devs, Matthew Sinex Free sample: the introduction and the start of the chapter on upgrading the project templates. 2019. Free sample: PDF · EPUB
- 7..NET 9 for Web Developers, GitforGits | Asian Publishing House: From console apps to production-ready web APIs and desktop clients using ASP.NET Core, Entity Framework Core, and MVVM Free sample: the prologue and the table of contents. 2026. Free sample: PDF
- 8.From Core to Contract, Grigorios Agathangelidis Free sample: the first chapter, on what the earlier volume left to build and the first repository against a real database. 2026. Free sample: PDF
- 9.The History of .NET Web Development 4th Edition, Iris Classon No sample: from the description. 2026.
- 10.Mastering ASP.Net From Beginner To Web Developer, Anshuman Mishra No sample: from the description and table of contents. 2026.
- 11.Evolving ASP.net Applications, Simon Timms, David Paquette: Bridging the Gap Between Legacy and HTML5 No sample: from the description and table of contents. 2016.
- 12.Bootstrapping MVC, James Chambers: Using Bootstrap and the MVC Framework to Build Web Applications No sample: from the description and table of contents. 2014.
- 13.ASP.NET Core MVC Crash Course: Learn to build fast and secure web applications with ASP.NET MVC, Greg Lim No sample: from the description and table of contents. 2026.
- 14.C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals - Eighth Edition, Packt Publishing Ltd: Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8 No sample: from the description and table of contents. 2025.
- 15.Hallo .NET 8.0: Practical ASP.NET Core Minimal API, Agus Kurniawan No sample: from the description and table of contents. 2023.
- 16.Hallo .NET 9.0: Practical ASP.NET Core Minimal API, Agus Kurniawan No sample: from the description. 2025.
- 17.Web API Development with ASP.NET Core 8, Packt Publishing Ltd: Learn techniques, patterns, and tools for building high-performance, robust, and scalable web APIs No sample: from the description and table of contents. 2024.
- 18.API Versioning for The Real World, Dan Patrascu: With Examples in .NET No sample: from the description and table of contents. 2024.
- 19.C# & AI Masterclass: Building AI Web APIs with ASP.NET Core. Serving Models and Chat Endpoints, Edgar Milvus No sample: from the description. 2026.
- 20.SignalR on ASP.NET Core Made EasyCourse, Fiodar Sazanavets: Getting to know SignalR fundamentals with .NET 5 nd .NET 6 code samples No sample: from the description and table of contents. A course.
- 21.Hallo Blazor: Building Modern Full-Stack Web Apps with .NET 9.0, Agus Kurniawan No sample: from the description and table of contents. 2025.
- 22.Blazor Web Development Cookbook, Packt Publishing Ltd: Tested recipes for advanced single-page application scenarios in .NET 9 No sample: from the description and table of contents. 2025.
- 23.Blazor QuickGrid: A Monograph, Dennis A Landi No sample: from the description and table of contents. 2025.
- 24.Apps and Services with .NET 8 - Second Edition, Packt Publishing Ltd: Build practical projects with Blazor, .NET MAUI, gRPC, GraphQL, and other enterprise technologies No sample: from the description and table of contents. 2025.
- 25.Software That Lasts, Kaj Bromose: Professional C# Development with Clean Architecture, DDD, and Concurrency No sample: from the table of contents. 2026.
- 26.Microservices using ASP.NET Core, Akhil Mittal: A Practical Approach of Learning Microservices using ASP.NET Core No sample: from the description and table of contents. 2019.
Further reading
Other books in the library on the same ground, not cited above.
- From Blueprint to Core, Grigorios Agathangelidis The first volume of the series cited above, building and testing the domain and application layers with no database or web server. 2026. Free sample: PDF
- From Contract to Container, Grigorios Agathangelidis The third volume of the same series, on integration tests, a background worker, observability and a container image. 2026. Free sample: PDF
- Pro Episerver Commerce, Quan Mai: Creating powerful eCommerce solutions. The internals and programming interfaces of a commercial commerce platform built on ASP.NET. 2021. Free sample: PDF · EPUB
- Globally-Distributed Applications with Microsoft Azure, Christos Sakellarios: For developers and architects A web application deployed across several regions of one cloud, with scripted provisioning. 2019. Free sample: PDF · EPUB
- Practical functional C#, dimitris papadimitriou: A practical guide to the language-ext C# functional Library Functional programming in C# with one library, ending in a sample web application. 2025. Free sample: PDF
- The C# and .NET Interview Compendium – Second Edition, Yohan J. Rodríguez: Interview Questions and Answers for C# and .NET Developers Interview questions and answers on C# and .NET, with a chapter on ASP.NET Core web APIs. 2026. Free sample: PDF
- .NET MAUI Cross-Platform Application Development - Second Edition, Packt Publishing Ltd: Build high-performance apps for Android, iOS, macOS, and Windows using XAML and Blazor with .NET 8 Native applications for phones and desktops, with chapters on embedding Blazor components in them. 2025.
- GraphQL.NET Cookbook, Senthil Kumar: [TO BE COMPLETED BYMAR 2026] A short, unfinished book on adding GraphQL to a .NET application. 2021.