asp.net-mvc – 如何在asp.net中使用Captcha mvc

任何人可以告诉我如何在asp.net mvc中使用验证码?
有没有需要下载任何控件?

解决方法

希望把我的两分钱放在…

介绍MvcReCaptcha

当我尝试在我的第一个ASP.NET MVC网站上实施CAPTCHA验证时,我遇到了同样的问题。发现许多图书馆之后,我发现似乎(似乎仍然是)最直接和最有效的库:MvcReCaptcha.从那时起,我已经为所有的ASP.NET MVC网站使用了这个库。

实现MvcReCaptcha后,它会在视图中安全地生成一个CAPTCHA,并提供一个布尔值,验证是否成功执行该操作。

使用说明

下载并从您的项目中引用MvcReCaptcha DLL(MvcReCaptcha主页复制的指令)后,如何实现它:

Using ReCaptcha with ASP.NET MVC:

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

Signup for reCaptcha,
07001

How to Use:

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

06000

Step 2: Add new namespace to your
web.config

06001

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

06002

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

06003

祝你好运!

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...