For ASP.NET, you just need to download the recaptcha dll and reference it in your project. Then put this at the top of the page where the CAPTCHA functionality is needed:
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
This snippet will render the CAPTCHA control itself:
<recaptcha:RecaptchaControl ID="recaptcha" runat="server" Theme="white" PublicKey="Provided By Google" PrivateKey="Provided By Google" />
And finally, this code will check to make sure the correct code was entered. This assumes you have a ValidationSummary control on your page.
If Page.IsValid = False Then Return End If
No comments:
Post a Comment