tanveery / recaptcha-net

reCAPTCHA for .NET library lets you easily use Google's reCAPTCHA in an ASP.NET Web Forms / MVC / ASP.NET Core application.
Apache License 2.0
163 stars 69 forks source link

Add Callback option to Html.Recaptcha() #33

Open aethercowboy opened 8 years ago

aethercowboy commented 8 years ago

It would be nice if there was a way to set the callback method using the Html.Recaptcha() method. It would then set the data-callback attribute on the tag. Setting this via a web.config would be nice too.

MagnusJohansson commented 8 years ago

I agree. For purposes of enabling/disabling a submit button would improve the user experience dramatically. As is it now (v2.1.0), the user can submit without filling in the captcha, a post back has to occur, and first then can we capture the error in validation. Please consider adding client side callback as soon as possible.

http://stackoverflow.com/questions/33463483/recaptcha-grey-out-submit-button-until-backend-interaction-is-finished

seanyeomans commented 7 years ago

I concur, not having these attributes to embed is problematic.

Is this relevant? https://github.com/tanveery/recaptcha-net/pull/34

@MagnusJohansson how does one consume the edits you made last fall (2016)

aldeng11 commented 3 years ago

Hi, I'm upgrading 2.x to 3.1 and I don't see the DataCallback property on the Recaptcha control, and I can't find an example of how to do a client-side callback in the webforms v3.x samples. Is this no longer supported?