I am using the ASP.Net plugin and control provided by reCAPTCHA. I can successfully get the control to work if the submit button on the web form is not in a validationgroup. There is no validationgroup attribute for the reCAPTCHA control.
Has anybody had any success with this or any solutions to get the reCAPTCHA control to work when there is a validationgroup on the web form?
The reCAPTCHA ASP.NET plug-in is written to be backward-compatible with ASP.NET 1.1, which means the
ValidationGroupconcept (which is new in ASP.NET 2.0) is not supported. But the plug-in comes with downloadable source code, so you can modify it yourself to supportValidationGroup.In ASP.NET 2.0, validators should inherit from
BaseValidatorand implementIValidator, which means you should change the RecaptchaControl type to inherit fromBaseValidatorinstead ofWebControl. You will then have to modify the code a bit to implement all methods and properties defined inBaseValidator. Then you can use this new control on your page instead, which now supportsValidationGroup.