How To
Building Your First App with HTMX and .NET - Part II
2/7/2025 8:50:43 AM 50
In this episode, we’ll enhance our Articles app by adding an article editing feature. Users will be able to edit article details with a clean and responsive interface.
Working with HTMX and Razor Components
2/7/2025 8:18:32 AM 92
In .NET 8, working with Razor components has become an efficient way to handle HTML rendering in a clean and reusable format.
Getting Started with HTMX
2/7/2025 8:09:23 AM 52
HTMX is a JavaScript library that lets you integrate AJAX functionality into HTML directly through HTML attributes.
Build a server-side web app with HTMX in C#
2/7/2025 7:36:54 AM 108
Combine .NET with C# and HTMX for a smooth development experience that delivers dynamic front-end interactivity without any JavaScript.
How to Use HttpClient to GET JSON from API endpoint in C#
2/7/2025 7:14:35 AM 241
Why not create a method that can make a GET request to an API and directly return the response as an object?
JWT Token Expiry Timestamp in C#
2/7/2025 7:13:25 AM 259
To decode a JWT token and extract its expiration time (expiry), you can follow these steps in C#.
How to Send x-www-form-urlencoded Data with HttpClient in C#
2/7/2025 7:11:44 AM 204
To post x-www-form-urlencoded data in C# using HttpClient, you can follow these steps:
How to use NetEscapades.AspNetCore.SecurityHeaders
2/7/2025 4:16:03 AM 307
NetEscapades.AspNetCore.SecurityHeaders is a .NET library that helps you easily set HTTP security headers in ASP.NET Core applications to improve security by protecting against various types of attacks (like XSS, clickjacking, etc.).
How to setup a webapi controller for multipart/form-data
2/7/2025 4:03:42 AM 552
If you uploaded file through webapi in angularjs and encountered the following error: ExceptionMessage=No MediaTypeFormatter is available to read an object of type ‘HttpPostedFileBase’ from content with media type 'multipart/form-data'.
Sorting a SortedList in Descending Order in C#
2/7/2025 3:55:07 AM 53
In C#, the SortedList<TKey, TValue> class stores key-value pairs in ascending order of the key by default. If you need to store the elements in descending order, you can achieve this by using a custom comparer.
Difference between delegate and event in C#
2/7/2025 3:52:05 AM 55
In C#, both delegates and events are essential constructs for handling method references and providing a way to notify subscribers when something happens.
How to calculate code execution time in C#
2/7/2025 3:39:34 AM 154
To calculate the code execution time in C#, you can use the Stopwatch class from the System.Diagnostics namespace.