Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I am using capcha with asp.net register controler so not able to check catcha validation from code behind.

Please suggest me how we can validate captcha from client side.

Using captcha url:
Google ReCaptcha 2.0 - ASP.net Control[^]

Thanks
shubham gupta
Posted
Updated 16-Aug-17 0:34am
v2

Validating on the client is pointless as your script can be updated by Malicious Malory or just removed altogether. There is probably a way of hooking into the events of the register control to ensure the captcha is valid, you're better off looking into that.
 
Share this answer
 
As F-ES have mentioned it is not a good idea to implemnt it on client side, but in case you really need to do it on client-side, here is a good post on it

Validate Google RECaptcha on Client Side using JavaScript and jQuery in ASP.Net
[^]

and the demo for it here[^]
 
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