How To
How to handle DataGridViewButtonColumn click event in C#
By Tan Lee Published on Feb 28, 2025 208
Handling the DataGridViewButtonColumn click event in C# involves a few key steps.
Dynamic Menus in ASP.NET Core
By Tan Lee Published on Feb 28, 2025 180
Implementing dynamic menus on the layout page in ASP.NET Core involves several steps.
Implementing Security in WCF
By Tan Lee Published on Feb 28, 2025 63
In client-server environments, ensuring the security of data and messages is paramount. Before transmitting any data, it is crucial to implement robust security measures.
How to Add Swagger in .NET
By Tan Lee Published on Feb 28, 2025 216
Swagger is a powerful tool for documenting and testing APIs. In .NET 9, integrating Swagger with Minimal APIs or traditional controllers is simple and efficient.
How to pass anonymous types as parameters in C#
By Tan Lee Published on Nov 22, 2024 737
In C#, you generally cannot pass anonymous types directly as parameters to methods because they do not have a named type that can be referenced outside their declaration scope.
Building Your First App with HTMX and .NET - Part I
By Tan Lee Published on Feb 07, 2025 268
HTMX offers an elegant way to integrate AJAX, CSS transitions, WebSockets, and Server Sent Events directly into your HTML using simple attributes.
How to convert varchar to integer in MySQL
By Tan Lee Published on Sep 19, 2024 344
In MySQL, you can convert values to integers using the CAST() or CONVERT() functions.
How to Efficiently Download Large Files in ASP.NET
By Tan Lee Published on Feb 27, 2025 579
To efficiently download large files in ASP.NET, you should focus on methods that minimize memory usage, prevent timeouts, and ensure a smooth user experience.
Best Image Format in C#
By Tan Lee Published on Feb 27, 2025 247
In modern application development, high-quality images must be optimized for performance. Developers frequently face the challenge of choosing the best image format.
Dynamically Passing Connection String in a Model-First Approach
By Tan Lee Published on Feb 27, 2025 83
To pass a connection string dynamically in a Model-First approach, especially when using Entity Framework, follow these steps:
What is HSTS
By Tan Lee Published on Feb 27, 2025 149
When you create a new ASP.NET Core application, it comes with a set of middleware to handle typical web application tasks like serving static assets, routing, HTTPS redirection, and exception handling.
HTML5 Validation for ASP.NET Core
By Tan Lee Published on Feb 27, 2025 139
While working on an ASP.NET Core project, I wanted to improve the efficiency of client-server interactions by ensuring that only valid requests were made. This is something HTMX supports by default when you use HTML5 validators on forms and input fields.