HEXAQ : A friendly question - answer site for IT professionals

Google reCAPTCHA is not validating in ASP.NET


0

I've downloaded and integrated Google reCAPTCHA in my website few days back. The project compiles successfully with the reCAPTCHA control. When I click on submit button on my webpage all other validation controls are working fine but the reCAPTCHA doesn't.

I have added Page.IsValid to validate it server side.

In spite of having all these validations, my reCAPTCHA is the only control that is not getting validated.

Can anyone tell me how to make the reCAPTCHA contorl working on my web form?

Many thanks in advance!!

Â
asked
 


≡ Total 1 Answer

0

Have a line added before your Page.IsValid code

...
...
recaptcha.Validate();
if (Page.IsValid){
...
...
}

This will validate your Google reCaptcha control before validating other controls.

This will be server side validation and will validate against new code always.

Â
replied


Enter your reply here
Answer Preview: