How To

How to use Razor View Engine in ASP.NET Core
2/3/2025 9:14:14 AM  132

The ASPX View Engine, a legacy feature in ASP.NET MVC, was part of the framework from its early days.

How to Implement IP Whitelists in ASP.NET Core
2/3/2025 9:10:27 AM  105

When working with applications in ASP.NET Core, there may be scenarios where you want to restrict access to your API or web resources to only a specific set of trusted IP addresses.

How to Use Cancellation Tokens in ASP.NET Core
2/3/2025 9:04:26 AM  154

ASP.NET Core 7, the latest version of Microsoft's open-source web application framework, brings many advanced features from previous .NET versions, one of which is cancellation tokens.

How to Use Simple Injector in ASP.NET Core
2/3/2025 8:51:15 AM  89

Dependency Injection (DI) is a design pattern where an object receives the dependencies it requires rather than creating them directly.

How to Prevent CSRF Attacks in ASP.NET Core
2/3/2025 8:43:33 AM  97

Cross-site request forgery (CSRF) is a type of attack where a malicious user tricks an authenticated user into performing unwanted actions on a web application.

How to use Filters in ASP.NET Core
2/3/2025 8:27:28 AM  72

Filters in ASP.NET Core allow developers to execute code at specific stages in the request processing pipeline. This enables running code either before or after specific phases of the pipeline, such as executing actions, handling authorization, or generating results.

Preventing Redundant DI Code in ASP.NET Core
2/3/2025 8:17:39 AM  52

When working with controllers in ASP.NET Core or ASP.NET Core MVC applications, you may encounter repetitive code related to dependency injection (DI).

How to Read Request Headers in ASP.NET Core
2/3/2025 7:52:01 AM  130

ASP.NET Core MVC is a lightweight, open-source framework built on top of the ASP.NET Core 5 runtime. It provides support for handling request and response headers, which are collections of key-value pairs exchanged between the server and the client.

How to Use BitArray in .NET
2/3/2025 7:36:09 AM  83

The BitArray class in .NET 7 is a versatile and efficient data structure for storing and manipulating bits of data. Each element in a BitArray holds a single bit, represented as a boolean value (false for 0 and true for 1).

How to Implement Resource-Based Authorization in ASP.NET Core
2/3/2025 7:11:19 AM  72

In this article, we will explore how to implement resource-based authorization in ASP.NET Core to enforce fine-grained access control over resources in scenarios that attribute-based authorization cannot handle.

Serial Port Communication in C#
2/1/2025 3:18:12 AM  585

The SerialPort class in C# enables communication with a serial port in .NET. This article demonstrates how to send and receive data through a serial port, displaying the received data in a TextBox using threading.

How to Optimize StringBuilder Performance in C#
2/1/2025 3:16:04 AM  73

Strings in .NET are immutable, meaning that modifying a string creates a new object in memory, which can lead to performance issues.