How To

Turkish i in C#
11/10/2024 1:51:06 AM  187

In C#, when working with string comparisons that involve Turkish characters, such as the Turkish lowercase 'i' (ı) and uppercase 'I' (İ), special attention is needed because of the unique way these characters behave in Turkish language and culture.

How to allow HTML string in ASP.NET MVC
11/10/2024 1:40:45 AM  140

In ASP.NET MVC, HTML strings are considered dangerous because they can contain malicious code, such as JavaScript, that can lead to Cross-Site Scripting (XSS) attacks.

How to enable MultipleActiveResultSets
11/9/2024 2:40:53 PM  163

To enable Multiple Active Result Sets (MARS) in SQL Server, you need to modify the connection string of your application.

How to insert master/details data in EF Code First
11/9/2024 2:28:14 PM  108

In Entity Framework (EF) Code First, inserting master-detail data involves inserting records into both the "master" and "detail" tables while respecting the relationships between them (such as one-to-many, many-to-one, etc.).

Connection String in Entity Framework 6
11/9/2024 2:20:59 PM  96

In Entity Framework 6 (EF6), the connection string is typically specified in the App.config or Web.config file of your project.

How to get current date and time from internet in C#
11/9/2024 1:57:14 PM  290

In C#, you can retrieve the current date and time from the internet by using a time server (also known as an NTP server) to sync with an accurate time source.

How to convert Bytes To Kilobytes in C#
11/9/2024 1:01:06 PM  180

To convert bytes to kilobytes (KB) in C#, you simply divide the number of bytes by 1024, since 1 kilobyte (KB) is equal to 1024 bytes.

Intersperse implementation in C#
11/9/2024 12:59:03 PM  92

In this post, I'll demonstrate how to implement an Intersperse method in C# as an extension method on the IEnumerable<T> interface.

How to install a windows service using Windows command prompt
11/9/2024 4:36:14 AM  136

To install a Windows service using the Command Prompt, you can use the installutil or sc command.

How to add security headers to your ASP.NET Core
11/8/2024 11:29:04 PM  205

To add security headers to your ASP.NET Core application, you can use middleware that adds the appropriate headers to HTTP responses.

How to download DataTable in Excel format in C#
11/6/2024 2:15:29 PM  94

To download tabular data such as DataTable data in Excel CSV/TSV format in C#, you can follow these steps.

How to check potential XSS characters in C#?
11/6/2024 2:05:35 PM  174

To check for potential Cross-Site Scripting (XSS) vulnerabilities, you'll need to identify characters or payloads that might be used to inject malicious scripts into web pages.