.NET tutorials

Render mode for Server & WebAssembly Blazor components

Render mode for Server & WebAssembly Blazor components

Blazor has a .NET 8 render mode feature that allows different modes to be set for Razor components in the same app whether it's Server, WebAssembly or Auto.
Server-side rendering (SSR) for Blazor in .NET 8

Server-side rendering (SSR) for Blazor in .NET 8

Server-side rendering (SSR) is a render mode which has become a new Blazor feature for .NET 8, working in a similar way to ASP.NET Core MVC.
Primary constructors adds class parameters in C# 12

Primary constructors adds class parameters in C# 12

Primary constructors is a C# 12 feature that allows to add parameters to a class and includes dependency injection support.
Keyed services in .NET 8 finally sees a dependency injection update

Keyed services in .NET 8 finally sees a dependency injection update

.NET 8 brings keyed services, a dependency injection update for creating the same service with a different implementation in the IoC container.
FromQuery? FromForm? What do the .NET Web API attributes do?

FromQuery? FromForm? What do the .NET Web API attributes do?

How the FromQuery, FromBody, FromForm, FromHeader and FromServices attributes work in an ASP.NET Core Web API and MVC app with C# code.
What is JWT and how to add it to ASP.NET Core

What is JWT and how to add it to ASP.NET Core

How to use JWT in ASP.NET Core for Bearer token authentication and security within the OAuth Client Credentials flow.
What is Basic authentication and how to add in ASP.NET Core

What is Basic authentication and how to add in ASP.NET Core

Learn what is Basic authentication and an example of how to add it to a HTTP request header in ASP.NET Core using Base64.
Blazor component: Razor tutorial and example

Blazor component: Razor tutorial and example

A Blazor component uses Razor for rendering a Blazor WebAssembly app. We'll create one and add a parameter attribute in this tutorial.
Data Annotations for model validation in ASP.NET Core

Data Annotations for model validation in ASP.NET Core

Learn how to write a custom .NET data annotation in C# for model validation in ASP.NET Core MVC and Web API.
SOLID principles in C# used in object-oriented design

SOLID principles in C# used in object-oriented design

SOLID principles in C#, looking at design principles and examples for using object-oriented design (OOD) in your software.