ASP.NET CAPTCHA implementation

How can I implement CAPTCHA in my ASP.NET WebForm? This is a registration form. I am new to ASP.NET, thanks.

+4
source share
3 answers

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

+4
source

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

Then add this DLL to the bin folder of your project as a reference. Then register the control on your page as follows, and

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

then you can create a control like

You must add the private key and public key provided on the recaptcha website.

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

+1
source

All Articles