This project is read-only.

MvcReCaptcha v1.0.0

Rating:        Based on 2 ratings
Reviewed:  2 reviews
Downloads: 7647
Released: Jul 31, 2009
Updated: Jul 31, 2009 by ericgarza
Dev status: Stable Help Icon

Recommended Download

Source Code
source code, 17K, uploaded Jul 31, 2009 - 6460 downloads

Other Available Downloads

application, 10K, uploaded Jul 31, 2009 - 1187 downloads

Release Notes

Using ReCaptcha with Asp.Net MVC

It is now extremely easy to setup ReCaptcha on your Asp.Net MVC Website.

Signup for reCaptcha,

How to Use:

Step 1: Add your Public and Private key to your web.config file in appsettings section

	<add key="ReCaptchaPrivateKey" value=" -- PRIVATE_KEY -- " />
	<add key="ReCaptchaPublicKey" value=" -- PUBLIC KEY -- " />

Step 2: Add new namespace to your web.config

	<add namespace="MvcReCaptcha.Helpers"/>

Step 3: Implement the logic in your view to actually render the Captcha control

<%= Html.GenerateCaptcha() %>

Step 4: Implement the Controller Action that will handle the form submission and Captcha validation

[AcceptVerbs( HttpVerbs.Post )]
public ActionResult CreateComment( Int32 id, bool captchaValid )
	if (!captchaValid)
		ModelState.AddModelError("_FORM", "You did not type the verification word correctly. Please try again.");
		// If we got this far, something failed, redisplay form
		return View();

Reviews for this release

This project is now obsolete. It looks to be directly integrated with Google's ReCaptcha library (same code). Just FYI, get latest from Google COde and you have this.
by eduncan911 on May 19, 2011 at 4:16 AM
The documentation should include a mention of Html.ValidationSummary, but other than that, great control. Can it be styled?
by pettijohn on Mar 27, 2010 at 5:49 AM