如何验证asp.net中的验证码控制 [英] how to validate captcha control in asp.net
本文介绍了如何验证asp.net中的验证码控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨...
我正在使用验证码控制,我需要验证该代码.
我给出了这样的代码,
Hi...
Im using captcha control and i need to validate that code.
I gave code like this,
protected void btnNext_Click(object sender, EventArgs e)
{
ccJoin.ValidateCaptcha(txtCaptcha.Text);
if (!ccJoin.UserValidated)
{
lblMsg.Text = "Incorrect code";
return;
}
else
{
lblMsg.Text = "Code matched";
}
}
但是即使在文本框中输入正确的代码后,我也只会收到不正确的消息...指导我
But im getting only incorrect message even after entering correct code in textbox...guide me
推荐答案
请参考以下链接:
http://amitpatriwala.wordpress.com/tag/captcha-validation-in -asp-net-2-0/ [ http://dotnetpgm.blogspot.in/2010/01/captcha-validation- in-aspnet-20.html [ ^ ]
http://captcha.biz/doc/aspnet/samples/csharp/asp.net-basic-captcha-sample.html [ ^ ]
用于ASP.NET的CAPTCHA服务器控件 [ ^ ]
--Amit
Hi,
Refer the links below:
http://amitpatriwala.wordpress.com/tag/captcha-validation-in-asp-net-2-0/[^]
http://dotnetpgm.blogspot.in/2010/01/captcha-validation-in-aspnet-20.html[^]
http://captcha.biz/doc/aspnet/samples/csharp/asp.net-basic-captcha-sample.html[^]
A CAPTCHA Server Control for ASP.NET[^]
--Amit
这篇关于如何验证asp.net中的验证码控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文