Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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..
Posted
Comments
Jaimin H. Soni 9-Aug-14 8:27am    
which captcha control you use?

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900