验证码验证检查无法在asp.net中运行? [英] Validation checking in captcha doesnot working in asp.net?

查看:88
本文介绍了验证码验证检查无法在asp.net中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jquery弹出窗口发送电子邮件。在jquery弹出窗口上有一个验证码图像。当我点击texbox上的无效验证码时,asp按钮重定向,弹出窗口将消失。使用ajax方法解决此问题..

Am using jquery popup for sending email.there have a captcha image on the jquery popup. when i click the invalid captcha on texbox the asp button redirect and the popup will disapeared.how to solve this problem using ajax method..

推荐答案

保持验证码文本会话和按钮单击时,如果两者相同,则将文本框值与会话值进行比较,然后重定向到另一个页面。否则关闭弹出窗口并保持在同一页面。您可以使用Jqery ajax将文本框值发送到后面的代码。如果它通过然后重定向到另一个页面,那么其他人本身也会在JSON中发回错误消息。检查Ajax post的成功函数中的数据值并隐藏jquery弹出窗口
Keep the captcha text in Session and when button click compare the textbox value with the session value if both are same then redirect to another page. Otherwise close the Popup windows and stay in the same page. you can use Jqery ajax for sending textbox value to code behind. If it passes then redirect to another page there itself else send back a error message in JSON. Check the data value in success function of Ajax post and hide the jquery popup


这篇关于验证码验证检查无法在asp.net中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆