My reCaptcha gets Page.IsValid = False always ... when using onClientClick = "return validate ()"

I am using reCaptcha in my 2.0 web application.

I am using onClientClick = "return validateForm ()" in my submit button. validateForm does basic validation and stops the form from going to the server if not required ...

For some reason, as soon as the user passes client side validation, they always get Page.IsValid = "false" ...

If I remove the onClientClick everything works fine. What to do?


source to share

1 answer

I don't know what is causing your problem, but you can try using the .NET reCAPTCHA library (available from ) if you are not already using it. It uses ASP.NET validators so you don't need to do any custom client side validation.



All Articles