Support us .Net Basics C# SQL ASP.NET Aarvi MVC Slides C# Programs Subscribe Download

Customizing recaptcha control

Suggested Videos
Part 165 - How to display an icon for website on browser tab
Part 166 - Captcha control in asp.net
Part 167 - Using ASP.NET validation controls with recaptcha



In this short video we will discuss using the standard themes that come with recaptcha control to customize it's look and feel in an asp.net web application.



The following are the different standard themes available. The default theme is red.
1. red
2. white
3. blackglass
4. clean

The Theme property can be set declaratively in the HTML or programatically in the code-behind file. The theme that is set programatically overrides the theme that is set declaratively in the HTML.

The following example sets the Theme property to blackglass
<recaptcha:RecaptchaControl ID="recaptcha" Theme="blackglass"
runat="server" PublicKey="Your_PublicKey"
PrivateKey="Your_PrivateKey" />

and this is how the recaptcha control looks with blackglass theme
customizing recaptcha control

For complete documentation on customizing the Look and Feel of reCAPTCHA, please visit
https://developers.google.com/recaptcha/docs/customization

No comments:

Post a Comment

It would be great if you can help share these free resources