adding an easy captcha tool

Hi,
I have a asp.net site and i need to add a captcha in the end of my form. Any suggestion for an easy and simple captcha? I don't want to include dll .

thanks
shpresaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
There's one on code project but it's not as easy as just plugging and playing.  You can follow along and tweak it if you want:
http://www.codeproject.com/Articles/8751/A-CAPTCHA-Server-Control-for-ASP-NET

Any reason why you don't want to use a DLL?
0
shpresaAuthor Commented:
I tried that and it gives me

Parser Error Message: Could not load file or assembly 'WebControlCaptcha' or one of its dependencies. The system cannot find the file specified.
0
Kyle AbrahamsSenior .Net DeveloperCommented:
Well there's a lot more to it then that.  You need to add the source control project files to your solution.  

It might be easier to use a DLL . . . in which case I would recommend MSCaptcha:

Download here:
http://kirsanov.net/page/ASPNET-CAPTCHA.aspx

Example here:
http://www.c-sharpcorner.com/UploadFile/sourabh_mishra1/captcha-image-in-Asp-Net/
0
Tapan PattanaikSenior EngineerCommented:
Hi shpresa ,

Add Captcha To Your ASP.Net WebForms Project :

I) Go to solution explorer and Right click on it.
ii)Click on “Manage Nuget Packages”
iii)Search for BotDetect and install the one that is created by Captcha,

Here is the code to display the captcha, write the below  code. (In your .ASPX page)

<asp:textbox ID="txtCaptcha" runat="server"></asp:textbox>
           <botdetect:captcha ID="captchaBox" runat="server"></botdetect:captcha>

Open in new window


For .aspx.cs:

bool isHuman = captchaBox.Validate(txtCaptcha.Text);
            txtCaptcha.Text = null;
            if (!isHuman)
            {
                //The Captcha entered by user is Invalid.
            }
            else
            {
                //The Captcha entered by user is Valid.
            }

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.