Hi Friends,
1.) Generate a public and private key from recaptcha.net.
2.) Download recaptcha.dll from the net.
3.) Add this dll as reference in your project.
4.) <%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %> add this line in your aspx page.
2.) <recaptcha:RecaptchaControl ID="recaptcha1" runat="server" PublicKey="your public key" PrivateKey="your private key" Theme="clean" /> add this control inside the <form> tag.
3.) recaptcha provide bydefault 4 themes e.g red, blackglass, clean and white. You can use any of them.
4.) To check its working fine or not. Use below code in your cs file.
recaptcha1.Validate();
if (recaptcha1.IsValid)
{
// Work here after satisfaction of captcha.
}
Today I will let you know steps to use recaptcha in ASP.NET Code.
2.) Download recaptcha.dll from the net.
3.) Add this dll as reference in your project.
4.) <%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %> add this line in your aspx page.
2.) <recaptcha:RecaptchaControl ID="recaptcha1" runat="server" PublicKey="your public key" PrivateKey="your private key" Theme="clean" /> add this control inside the <form> tag.
3.) recaptcha provide bydefault 4 themes e.g red, blackglass, clean and white. You can use any of them.
4.) To check its working fine or not. Use below code in your cs file.
recaptcha1.Validate();
if (recaptcha1.IsValid)
{
// Work here after satisfaction of captcha.
}
No comments:
Post a Comment