By entering the verification code shown on the web page when a user sign up, the web site or application can prevent automated registrations. This reduces system loads and ensures better performance and security of web site or application. This tutorial will show you how to create the randomly generated verification code in ASP.NET 2.0 and VB.

In order to create a random verification code, we create a method called CreateRandomCode at first

Then we generate verification code character string as exported image

Use a method GenerateVCodeImage to print image

Transfer function on Page_load

Download Source Files