.NET tutorials

Use ASP.NET Core hosted services to run a background task

Use ASP.NET Core hosted services to run a background task

Learn how to run a background task in .NET using hosted services. Use dependency injection and configure in Program.cs or Startup.cs
How .NET 6 Minimal APIs has evolved ASP.NET Core

How .NET 6 Minimal APIs has evolved ASP.NET Core

Converting a small front-end ASP.NET Core Web API from ASP.NET Core 2.1 to ASP.NET Core 6 using Minimal APIs & remove dead code.
How to use the button onclick event in Blazor WebAssembly

How to use the button onclick event in Blazor WebAssembly

Learn the Blazor WebAssembly button onclick event. Use the Blazor Wasm parameter attribute to pass the event to another Razor component.
Create a Roulette wheel. Game development using Blazor WebAssembly

Create a Roulette wheel. Game development using Blazor WebAssembly

Use Blazor WebAssembly to create a roulette wheel in one hour! Follow our Blazor Wasm game development tutorial using C#.
How to create the Connect 4 game in Blazor WebAssembly in one hour!

How to create the Connect 4 game in Blazor WebAssembly in one hour!

Creating the Connect 4 game using the .NET Blazor WebAssembly framework. The ASP.NET Core application uses C# & Razor components.
How to create the Tic-Tac-Toe game in Blazor WebAssembly in one hour!

How to create the Tic-Tac-Toe game in Blazor WebAssembly in one hour!

Creating Tic-Tac-Toe (Noughts & Crosses) using the Blazor WebAssembly framework. Example coded using C# & Razor components.
Why is the ASP.NET Core FromBody not working or returning null?

Why is the ASP.NET Core FromBody not working or returning null?

How to use ASP.NET Core FromBody & FromQuery in an API. Why FromBody is returning null & how to fix a 415 unsupported media type error.
How to create a free PDF document using HTML & CSS in ASP.NET Core

How to create a free PDF document using HTML & CSS in ASP.NET Core

Learn how to create a PDF document in ASP.NET Core using HTML and CSS. We also create a PDF document, and render a website.
How to read the appsettings.json configuration file in ASP.NET Core

How to read the appsettings.json configuration file in ASP.NET Core

Read the appsettings.json configuration into ASP.NET Core MVC. Parse the settings into a strongly typed class using the options pattern.
How to implement dependency injection in ASP.NET Core

How to implement dependency injection in ASP.NET Core

Implement a singleton, scoped and transient service using ASP.NET Core's dependency injection and find out common errors in DI.