Skip to content

dhana29/Add-Google-reCAPTACHA-in-MVC-Solution-without-reCAPTCHA.MVC.dll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Add-Google-reCAPTACHA-in-MVC-Solution-without-reCAPTCHA.MVC.dll

Add Google reCAPTACHA in MVC Solution without reCAPTCHA.MVC.dll

Steps:

  1. Generate key from the below path https://www.google.com/recaptcha/admin

  2. Create ASP .Net MVC Template solution

  3. Add View, Controller and Model code from the attachment

  4. Add below script into your html head tag

    <script src="https://www.google.com/recaptcha/api.js"></script>
  5. Important to add below lines in the web.config file

      <appSettings>
         <add key="UnobtrusiveJavaScriptEnabled" value="true" />
         <add key="reCaptchaPublicKey" value="CopyPublicKeyFromGoogleCAPTACHA" />
         <add key="reCaptchaPrivateKey" value="CopyPrivateKeyFromGoogleCAPTACHA" />
     </appSettings>
     
     <handlers>
       <add name="MSCaptcha" verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
     </handlers>
     
    

HAPPY CODING!

About

Add Google reCAPTACHA in MVC Solution without reCAPTCHA.MVC.dll

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages