ASP.NET ListView Item Delete Confirmation using jQuery Colorbox

The other day I was working on a .NET project I needed to perform a delete confirmation using jQuery Colorbox in ASP.NET ListView. After I spend long hours on internet I couldn’t find solution and come up with this idea. Hope you will enjoy it 🙂


Step 1: Add jQuery and Colorbox

you can download colorbox from

You can find jQuery Colorbox examples here

Step 2: Add the following inside < head > tag

Step 3: ASP.Net Listview using CommandArgument to delete the item


You can find much detailed information from ASP.NET Wiki:


Capture a web page into a BMP, JPEG or PNG image in ASP.Net using IECapt#

IECapt is a small command-line utility to capture Internet Explorer’s rendering of a web page into a BMP, JPEG or PNG image file. IECapt is available in a C++ and a C# version.

For more information please visit IECapt website:

Substitute 1K for 1000 or 1455 for 1.5K using ASP.Net C#

Shorten Number 1000 to 1K OR 1455 to 1.5K

private static string FormatNumber(int NumberCount)
if (NumberCount >= 1000000)
return FormatNumber(NumberCount / 1000) + "K";
if (NumberCount >= 1000)
return (NumberCount/1000D).ToString("0.#" + "K");
return NumberCount.ToString("#,0");

Password Encryption Using ASP.Net

Password Encryption can be used for encrypting password. Here in this article I am going to explain how you can create the hashed passwords. This method can be used for storing passwords in the credentials section of a database or inside an XML file.

Some of commonly used Hash Encryption Algorithms are ‘MD5‘ and ‘SHA-1

SHA-1 (Secure Hash Algorithm 1) is slower than MD5 but the message digest is larger, which makes it more resistant to brute force attacks. Therefore, it is recommended that Secure Hash Algorithm is preferred to MD5 for all of your digest needs.

Creating Hashed Passwords Using “SHA-1” (Secure Hash Algoritham)

  • Source Code “VB.NET”

    Dim strEncryptPassword As String
    strEncryptPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, “sha1”)

  • Source Code “C#”

    string strEncryptPassword;
    strEncryptPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, “sha1”);