This project is read-only.
Project Description
Using ReCaptcha with Asp.Net MVC

MvcReCaptcha makes it easier for you to implement the proven ReCaptcha technology. It's developed in C#.

Based on solution provided by

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();

Developed by EGI Consulting

EGI Consulting

EGI Consulting is an e-business solutions provider. Our wide range of products and services allow us to rapidly develop and deploy effective web sites for our customers.

Our services range from web development and design, seo web development, web application development, web design and hosting them in our data center to deployment of corporate and enterprise intranets and portals, database design, database performance tuning and custom software development. Our software solutions are used by developers and web designers around the world.

Our solutions have been leveraged by companies since 1994, speeding time to market and drastically reducing cost and overhead.

We test ourselves every day in the real world! Who better to develop your project than a team of experts that develop commercial software.

From .NET to .NEXT we have solution experts and access to experts that can get the job quickly and professionally. While it is optimal for us to start a project using our methodology and development techniques, we are great at crisis management. Simply put, we can often fix or clean up the abandoned mess left by others.

If you have an idea we also can partner or develop software you can sell.

Our secret is with our staff of art directors, designers, programmers, content developers, and marketing professionals combining their unique talents to fulfill the promise of our company name. We form close alliances with our clients, deliver total solutions, and are dedicated to making your business a Success for years to come!

To receive information on EGI Consulting's services, simply contact us at (877) 361-8880 or

Our Services Include:

  • Web Development
    • Web Application Development
    • Web and Enterprise Portals
    • Website Design / Development
    • Web-based Database Programming
    • Web-enabling Legacy Applications
    • Opensource Software Integration
  • Search Engine Marketing
    • search engine optimization
    • pay per click advertising
    • local search submission service
    • website assessment and action plan
  • Corporate Identity
    • logo / identity design
    • business collateral pieces

Last edited Aug 4, 2009 at 6:04 AM by ericgarza, version 5