1‏/7‏/2011 - 1‏/8‏/2011

How to add custom sorting for a class with IComparable interface

Sometimes it necessary to sort your collection before showing it on UI. You can add custom sorting to your class just by inheriting it with ...

santosh 24 يوليو, 2011

Calculate hash for a file in C#

In this article, I will show you how to calculate the hash of a given file in C#. Before that let’s understand what is hash and why it i...

santosh 24 يوليو, 2011

How to convert byte array to string in c#

This is a very simple code showing how to convert byte array to string in c# Make sure that you have imported the namespace System.Tex...

santosh 24 يوليو, 2011

How to convert string to Byte array in c#

This is very simple code showing how to convert string to byte array in c# # How to convert byte array to string in c# using System ;...

santosh 24 يوليو, 2011

How to embed exe or resource file in c# assembly

Sometimes it is necessary to embed an executable or exe (or any other file) into your application and later recreate it during runtime. ...

santosh 24 يوليو, 2011

How to encrypt/decrypt data in asp.net using Symmetric algorithm

In this post, I am going to show you how to encrypt and decrypt data in ASP.NET using a symmetric algorithm. Before we dive into the impl...

santosh 14 يوليو, 2011

How to compress response in asp.net

In this post, I will show you how to compress HTTP response in asp.net for improving performance. Before going into details, let’s create a...

santosh 13 يوليو, 2011

How to Hash User Passwords in asp.net

Web application security is very crucial because attacks against web apps are the top cause of data breaches. Business /company need sec...

santosh 11 يوليو, 2011