How to create an ASP.NET RecaptchaControl Custom tamplate

I would like to know how to create a RecaptchaControl template on my ASP.NET site.

I need to change the HTML code of the control to fit the RTL layout.

Here is the code to manage:

<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %> <recaptcha:RecaptchaControl ID="recaptcha" Theme="custom" runat="server" PublicKey="YYYYYYY" PrivateKey="XXXXXXX" /> 
+4
source share
2 answers

I know this is a late answer, but probably the easiest way would be to use the CustomThemeWidget property for recaptchacontrol. Here is a great tutorial on how to use it:

http://www.onequarterenglish.co.uk/using-a-custom-recaptcha-in-asp-net

+2
source

Appeaars, that there are some problems with rtl and recaptcha - this link refers to drupal but it seems that a custom theme may be possible. I'm not sure how you will use it with a server control. You may need to dive into the source.

+1
source

Source: https://habr.com/ru/post/1382948/


All Articles