locked
Invisible reCAPTCHA - How to do this in ASP.net Webforms? RRS feed

  • Question

  • User-374939276 posted

    Hi. I am currently using the reCAPTCHA and can get it to work okay. However, I want to ask if anyone has a sample or knows how to implement the new Invisible reCAPTCHA in ASP.net webforms? Any help would be great!

    Thank you for you time.

    Warren

    Thursday, November 9, 2017 10:55 AM

All replies

  • User-1414984251 posted

    Why not use reCaptcha. I used it on my website (classgist)(reCaptcha)

    Thursday, November 9, 2017 1:56 PM
  • User991499041 posted

    Hi Warren,

    Hi. I am currently using the reCAPTCHA and can get it to work okay. However, I want to ask if anyone has a sample or knows how to implement the new Invisible reCAPTCHA in ASP.net webforms? Any help would be great!

    To invoke the invisible reCAPTCHA,

    Step 1 - Go to URL https://www.google.com/recaptcha/admin and login with your credentials

    Step 2 - Register the reCAPTCHA for your site with your site Label.

    The following example is for your reference.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvisiblereCAPTCHA.aspx.cs" Inherits="WebFormDemo.InvisiblereCAPTCHA" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <script src="https://www.google.com/recaptcha/api.js" async="async" defer="defer"></script>
    </head>
    <body>
        <form id="form1" runat="server">
            <button class="g-recaptcha"
                data-sitekey="6LeLzA4UAAAAANNRnB8kePzikGgmZ53aWQiruo7O"
                data-callback="OnSubmit">
                Test
            </button>
        </form>
    </body>
    </html>
    <script>
        function OnSubmit(token) {
            document.getElementById("form1").submit();
        }
    </script>

    For more information, please visit Invisible reCAPTCHA.

    Regards,

    zxj

    Friday, November 10, 2017 6:24 AM
  • User-1838255255 posted

    Hi warrenkc2,

    According to your description, I think you want to implement recaptcha in the webform, here are some tutorials about how to implement it, please check:

    Google Invisible Re-Captcha In ASP.NET C#:

    http://www.c-sharpcorner.com/blogs/google-invisible-recaptcha-in-asp-net-c-sharp 

    Google RECaptcha Code with Example in ASP.Net:

    https://www.aspsnippets.com/Articles/Google-RECaptcha-Code-with-Example-in-ASPNet.aspx 

    Best Regards,

    Eric Du

    Friday, November 10, 2017 6:38 AM