Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Learn how to implement per-IP rate limiting in a .NET 8 ASP.NET Core Web API using custom middleware, including 429 responses and options for scaling the solution.

CSRF is a security vulnerability where attackers trick authenticated users into making unintended requests. This ASP.NET Core example demonstrates using anti-forgery tokens to prevent CSRF attacks. It shows how to protect endpoints with tokens, customize them, and handle AJAX requests securely.

Learn about alternatives like Blazor and Razor Pages, leveraging component-based architecture, state management, server-side rendering, and enhancing web app performance and scalability.

This guide covers setting up SQL Server as a session storage provider, configuring the connection string, enabling session middleware, and ensuring session persistence for scalable web applications.

Discover the essentials of ASP.NET Core, a powerful framework for building modern, cross-platform web applications. Learn about its key features, including MVC architecture, dependency injection, and middleware.

Integrate Braintree payment gateway with ASP.NET Core 2.1 by adding the Braintree .NET Client Library via NuGet. Configure the gateway using environment variables or default credentials. Implement endpoints to generate client tokens and process transactions.

Explore ASP.NET Core, a cross-platform, high-performance framework for building modern web applications and APIs. Learn about its key features including MVC architecture, Razor Pages, dependency injection, and middleware.

In this article, you will learn about CRUD operations in ASP.NET Core, using Entity Framework Core Code First.

Build an ASP.NET Core MVC vehicle management page that uses jQuery AJAX to add vehicles, Entity Framework Core to persist data, and SQLite as the database.

In this article, you will learn how to perform CRUD operations with ASP.NET MVC Core and Entity Framework Core.

In this article, you will learn about repository pattern in ASP.NET Core.

A brief introduction to ASP.NET Core using C# 12 and .NET 8 by Ziggy Rafiq. This modern framework enables you to build cross-platform, high-performance web applications. To get started, discover key features, advantages, and a practical example.

ASP.NET Core sessions allow storing user data between requests. Sessions use a SessionId stored in a cookie, which is sent with each request. Sessions can be configured as in-memory (In-Proc) or distributed (Out-Proc) and are managed using Microsoft.AspNetCore.Session package.

HTTP.sys is a Windows-based web server for ASP.NET Core, offering features like Windows Authentication, response caching, WebSockets, and HTTPS with SNI. Unlike Kestrel, it does not support IIS or IIS Express. It supports HTTP/2, and direct file transmission, and is ideal for direct internet exposure and internal deployments.

Learn how to implement custom authorization policies in ASP.NET Core using IAuthorizationPolicyProvider. Discover how to create policies dynamically based on runtime information, register them with a custom provider, and apply them to your application.

Learn how to configure Cross-Origin Resource Sharing (CORS) in .NET 8 to control access to your APIs from different domains. Understand key concepts like Same-Origin Policy, preflight requests, and CORS headers.

ASP.NET Core Identity is a membership system for managing authentication and authorization in web applications. It includes components like IdentityUser, IdentityRole, and Claims, and features such as password hashing, email confirmation, and two-factor authentication.

ASP.NET Core 2.0 introduces Razor Pages, a streamlined alternative to MVC for focusing on UI rather than complex logic. With Razor Pages, you manage server-side logic in code-behind files, simplify routing, and utilize tag helpers.

To use Razor Pages in ASP.NET Core 2.0, start by creating an empty project and configuring services and middleware in Startup.cs. Define a service and domain model, input/output models, and create CRUD pages in the Pages folder.

Learn how to create Razor Pages in an ASP.NET Core 6.0 application. This guide covers the essentials, from installing Visual Studio 2022 and setting up your project to configuring Razor Pages and running your application. Discover how Razor Pages simplify server-side web development with a page-focused framework.

It is a membership system that allows us to add login functionality to our application. User may create account and login using credential or can use external login provider such as Google, Microsoft Account, Twitter, Facebook etc.

Explore best practices for API error handling in .Net, covering essential techniques for robust and resilient APIs. Learn how to effectively manage exceptions, log errors, and implement fault tolerance.

Learn how to implement authorization in ASP.NET Core Razor Pages using AddRazorPagesOptions. This guide covers configuring access controls with methods like AuthorizePage, AuthorizeFolder, and AllowAnonymousToPage, including support for areas and Razor Class Libraries.

This guide explores the creation of a Web API using ASP.NET Core, integrating with an Oracle Database through the Dapper ORM. Learn how to set up a robust backend service, implement CRUD operations, and optimize database interactions.

It covers preparing your application for deployment, configuring IIS, setting up the hosting environment, and troubleshooting common issues to ensure a smooth and successful deployment.

ASP.NET Core 2.0, part of the .NET Core ecosystem, offers enhanced performance and productivity with features like minimal code requirements, Razor Pages, and new meta packages like Microsoft.AspNetCore.All.

Recently Microsoft announced anew version of Asp.Net Core and that is Asp.Net Core 2.0, which has new and amazing features which not only improve performance as well as increase productivity and enhance your application making it more robust and reliable.

In C#, transient services, created each time they are requested, are used within dependency injection to ensure unique, isolated instances. This enhances modularity and prevents shared state issues in .NET applications.

This article will demonstrate how to write Unit Test Cases for CRUD operations in Asp.Net Core Web API with the xUnit project. In this demonstration, we will write the Unit Test Cases for CRUD (CREATE, READ, UPDATE, and DELETE) operations.

Exception handling in ASP.NET Core is crucial for application stability. Exception filters provide a centralized way to manage errors, log them, and return custom responses, enhancing maintainability and user experience.
Everything on ASP.NET Core, not only its articles: the ASP.NET Core page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article