Categories
csharp

C# Example For Removing White Space From HTML

Example of csharp utility function to remove white spaces from HTML string. This is done with help of Regex class of dotnet framework.

Categories
csharp

Asp.net Membership Get Users Email

Csharp utility function example to retrieve users email from asp.net membership.

Categories
csharp

Best Way to Hash Password in C#

C# example to hash password or any other string. This function return hashed data in Base64 form.

Categories
csharp

C# Example to get SubDomain From URL

C# utility function to find sub domain name from URL.

Categories
csharp

Best Way To Serialize and Deserialize Object To JSON In Asp.net

C# Example for Serialize object to JSON string and Deserialize JSON sting to object in asp.net.

Categories
csharp

C# Parsing string representation of an enum field

C# generic utility function example to parse enum string field safely.

Categories
csharp

Detecting Asp.net is Running Under Linux

C# example to check that asp.net is running on linux or not using Environment.OSVersion.Platform.

Categories
csharp

How to Detect Mobile Device Request in Asp.net

Utility function example for detecting mobile device request using C# and asp.net.

Categories
csharp

Convert string to array of lines & line array to string in C#

C# example to convert text to array of lines and string from array of lines.

Categories
csharp

How to get sub domain from url using C#

C# example to get sub domain from url.