title: Google Recaptcha not visible ASP.NET
body: <p>I am trying to set up Google reCaptcha on ASP.NET web forms but it is not visible.</p>
  
  <p>So far I took the following approach:</p>
  
  <p>At the beginning of the .ascx page:</p>
  
  <pre><code>&lt;%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %&gt;
  </code></pre>
  
  <p>And the following in the form I want it to show:</p>
  
  <pre><code>&lt;script src="https://www.google.com/recaptcha/api.js" async defer&gt;&lt;/script&gt;
  
  &lt;div class="g-recaptcha" data-sitekey="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"&gt;&lt;/div&gt;
  
  &lt;recaptcha:RecaptchaControl
      ID="recaptcha"
      runat="server"           
      PublicKey="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
      PrivateKey="_My private key taken from the reCaptcha API_"            
      /&gt;
  </code></pre>
  
  <p>However, when I run the page, the reCaptcha is not visible.</p>
  
  <p>Any help is appreciated. Thanks</p>