我试图在我的应用程序中的部分视图上实现验证码。我已经将验证码作为控件通过web.config进行引用。我使用了这个论坛帖子中的GenericHandler和Class文件:http://forums.asp.net/t/1871186.aspx/1
如果我使用简单的input标签,如何引用用户的输入?我应该使用HtmlHelper吗?
如果我使用简单的input标签,如何引用用户的输入?我应该使用HtmlHelper吗?
<div class="captcha">
<rhcap:Captcha ID="Captcha1" runat="server"></rhcap:Captcha>
<input type="text" id="UserCaptchaText"><input/>
<%= Html.TextAreaFor(m => m.UserCaptcha) %>
</div>
<%if(Captcha1.Text != /* How can get the users input here?*/ ) {
//display error
}else{
//proceed
}%>