Categories
csharp

Hashing string using SHA & C#

C# example to generate string hash(string encryption) using SHA256Managed class

Categories
csharp

Get email of user from Asp.net Membership

Example for finding a user email address by user name in asp.net Membership.

Categories
csharp

Validate email using regular expression in C#

Simple C# function to validate email address using regular expression.

Categories
csharp

Validate host name using c# regular expression

C# function to validate host name using regular expressions.

Categories
csharp

C# validate IP address string

Easy regular expression based IP address validation functions to validate IPV4 and IPV6 address string.

Categories
csharp

C# generate random password

C# function to generate random password. You can customize this as per your need.

Categories
csharp

Best way to get asp.net resource objects by Culture

In asp.net all resources are kept in App_GlobalResources folder in .resx files. We can get resource using classkey, resourceKey and culture.

Categories
csharp

Best way to check File write permission of Asp.net

C# method to check file write permission in Asp.net application.

Categories
csharp

How to recycle IIS AppPools in Asp.net programmatically

Method to recycle IIS AppPool using c# code. There are several methods but for me this is best one.

Categories
csharp

Asp.net best way to get client IP address

Asp.net example to get client address ysing X-Forwarded-For HTTP header.