Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing a CAPTCHA in mvc 3.0 and latter

I used captcha in mvc 4.0 application and my reference : Asp.Net MVC CAPTCHA

but it implements base on mvc 2.0 it shows an image but in the controller I don't have any OnPreAction method I replace it with OnAuctionExcuting but there is no MethodInfo in it. how I can update code to run on mvc 3.0 or 4.0 ?

like image 909
kamiar3001 Avatar asked Mar 08 '12 07:03

kamiar3001


1 Answers

Just use Nuget to get the Recaptcha package, then follow this:

http://www.tkglaser.net/2011/10/google-recaptcha-in-aspnet-mvc-3-using.html

like image 100
Erik Funkenbusch Avatar answered Oct 19 '22 11:10

Erik Funkenbusch