Project Description
An ASP.NET Server Control for CAPTCHA. It can be directly placed in any asp.net user control or Page

Screenshot

This project is generic implementation of captcha control. It has been inspired by following projects and i would like to put special mention about them here:

1. CaptchaControl http://www.codeproject.com/KB/custom-controls/CaptchaControl.aspx
2. ASP.NET Captcha : http://captcha.codeplex.com

While researching for CAPTCHA implementation in my recent projects, i found above two projects are very nice and good implementation for CAPTCHA .

However, I have added the generic implementation into simple webcontrol which does not require any deployment specific instructions.

This CAPTCHA web control can be directly placed in any asp.net user control or aspx page and by checking the IsCapatchaValid property of this control. Developer can ensure that CAPTCHA is validated.

Steps to integrate CAPTCHA WebControl into your application

1. Download the latest release and extract it.
2. Copy the CaptchaWebControl.dll into web applications bin directory
3. Register the CaptchaWebControl into user control or web page using following syntax :
<%@ Register assembly="CaptchaWebControl" namespace="CaptchaWebControl" tagprefix="cc1" %> 

4. Add and customize styles for Captcha Label, Image, and Input control using following syntax :
 <style type="text/css">
        .BlackText
        {
            font-family:Tahoma;
            font-size:12px;
            font-weight:normal;
            color:Black;
            margin:5px;
            padding-top:5px;
            float:left;
        }
        
        .BlackTextInput
        {
            border-style:solid;
            border-width:1px;
            border-color:blue;
        }
        
        .CaptchImageStyle
        {
            border: 1px solid black;
            margin:5px;
            float:left;
        }
    </style>

5. Insert the control into user control or web page mark-up using following syntax:
 <cc1:CaptchaControl ID="CaptchaControl1" runat="server" 
            CaptchaMessageCSS="BlackText" CaptchaInputCSS="BlackTextInput" CaptchaImageCSS="CaptchImageStyle" /> 

Last edited Nov 15, 2013 at 4:37 PM by ashufouzdar, version 5