如何在asp.net代码中添加capcha代码 [英] how to add capcha code in asp.net code
本文介绍了如何在asp.net代码中添加capcha代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要添加capcha befor submit
< asp:Panel ID = Panel1 runat < span class =code-keyword> = server >
< div class = login >
< 表格 runat = server >
< ul >
< li >
& nbsp;& nbsp;& nbsp ;
< a < span class =code-attribute> href = # class = glyphicon glyphicon-user > < / a > < asp:TextBox < span class =code-attribute> ID = txtUserID runat = server TabIndex = 1 工具提示 = نامکاربری / >
< / li >
< li >
& nbsp;& nbsp;& nbsp;
< a < span class =code-attribute> href = # class = glyphicon glyphicon-pencil > < / a > < asp:TextBox ID = txtPass runat = 服务器 TabIndex = 2 工具提示 = رمزعبور / >
< < span class =code-leadattribute> / li >
< ; li >
& nbsp;& nbsp;& NBSP;
< a < span class =code-attribute> href = # class = glyphicon glyphicon-pencil > < / a > < asp:TextBox ID = txtSecurityPass runat = server TabIndex = 3 工具提示 = رمزامنیتی 已启用 = false / >
< / li >
< div >
< /格跨度> <温泉n class =code-keyword>>
< div class = < span class =code-keyword>提交su >
< asp:按钮 ID = btnLogin runat = server 文字 = تائید 标签index = 3 OnClick = btnLogin_Click / >
请帮帮我??
解决方案
考虑使用ReCaptcha: https://www.google.com/recaptcha/intro/index.html [ ^ ]它是免费的,使用起来非常简单,它有助于数字化数据!
也可以尝试下面的一个。
https://www.nuget.org/packages/Captcha/ [ ^ ]
http://captcha.com/doc/aspnet/nuget-captcha.html [ ^ ]
如何在5分钟内将Captcha添加到ASP.Net WebForms项目中 [< a href =http://www.codeproject.com/Articles/773785/How-To-Add-Captcha-To-Your-ASP-Net-WebForms-Projectarget =_ blanktitle =New Window> ^ ]
i need to add capcha befor submit
<asp:Panel ID="Panel1" runat="server">
<div class="login">
<form runat="server">
<ul>
<li>
<a href="#" class ="glyphicon glyphicon-user"></a><asp:TextBox ID="txtUserID" runat="server" TabIndex="1" ToolTip="نام کاربری"/>
</li>
<li>
<a href="#" class=" glyphicon glyphicon-pencil"></a><asp:TextBox ID="txtPass" runat="server" TabIndex="2" ToolTip="رمز عبور"/>
</li>
<li>
<a href="#" class=" glyphicon glyphicon-pencil"></a><asp:TextBox ID="txtSecurityPass" runat="server" TabIndex="3" ToolTip="رمز امنیتی" Enabled="false"/>
</li>
<div>
</div>
<div class="submit su">
<asp:Button ID="btnLogin" runat="server" Text="تائید" tabindex ="3" OnClick="btnLogin_Click" />
please help me ??
解决方案
Consider using ReCaptcha: https://www.google.com/recaptcha/intro/index.html[^] it's free, pretty simple to use, and it helps digitise data!
Also try below one .
https://www.nuget.org/packages/Captcha/[^]
http://captcha.com/doc/aspnet/nuget-captcha.html[^]
How To Add Captcha To Your ASP.Net WebForms Project in 5 minutes[^]
这篇关于如何在asp.net代码中添加capcha代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文