Mah*_* KP 2 c# asp.net recaptcha
我正在其中一个项目中使用Google recaptcha.我在aspx页面中添加了recaptcha控件.现在我想验证在recaptcha中输入的值是否正确.我如何在按钮点击事件中完成它?我正在使用c#.
if(Page.IsValid) //Will be true if captcha text is correct otherwise it will be false
{
//***your code****
}
Run Code Online (Sandbox Code Playgroud)
编辑:Page.Validate()检查条件前
调用
| 归档时间: |
|
| 查看次数: |
7330 次 |
| 最近记录: |