pRAVeEN
pRAVeEN

Reputation: 41

ASP.NET CAPTCHA implementation

How can I implement a CAPTCHA in my ASP.NET WebForm? It is a registration form. I am a beginner in ASP.NET, thanks.

Upvotes: 4

Views: 3240

Answers (3)

banupriya
banupriya

Reputation: 1249

Just download the recatcha DLL present in the link http://code.google.com/p/recaptcha/downloads/list?q=label:aspnetlib-Latest

Then add that DLL into the bin folder of your project as reference. Then register the control on your page as specified below and

<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>

then you can create the control as

You have to add the private key and public key provided in the recaptcha website.

Then in the code behind check Page.IsValid, if the security code does not match then the control makes Page.IsValid as false.

Upvotes: 1

Chris Fulstow
Chris Fulstow

Reputation: 41902

This pages explains how to integrate the reCAPTCHA ASP.NET Library with your application. This is the same CAPTCHA used by StackOverflow.

Upvotes: 4

Related Questions