Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesreCAPTCHA in Dotnetnuke modulereCAPTCHA in Dotnetnuke module
Previous
 
Next
New Post
8/25/2010 8:55 AM
 
Hello,

I am creating a custom module for Dotnetnuke with the reCAPTCHA control from http://www.google.com/recaptcha.
Everything is working fine when I first load the page with the module. But a postback is done the reCAPTCHA control is not visible anymore.
See the code below.

I am at a loss.... In a sample website I created (not Dotnetnuke) it works just fine...
What am I missing here?

Thanks in advance
Regards Heisa

This is snippet of my code:

<td colspan="2" class="wit">       
                                    
                                      <asp:UpdatePanel ID="UpdatePanel2" ChildrenAsTriggers="false" UpdateMode="Conditional" runat="server">
                                        <ContentTemplate>            
                                            <recaptcha:RecaptchaControl ID="rcp" runat="server"
                                            Theme="red" PublicKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                                            PrivateKey="xxxxxxxxxxxxxxxxxxxxxx" />
                                            
                                            <asp:UpdatePanel ID="UpdatePanel3" ChildrenAsTriggers="false" UpdateMode="Conditional" runat="server">
                                                <ContentTemplate>
                                                    <asp:Label ID="labelError" runat="server" EnableViewState="false" />
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                            <br />                                
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                    
                                </td>

When the button is clicked:
Page.Validate()
            If Not rcp.IsValid Then
                labelError.Text = "Incorrect try again!"
                labelError.ForeColor = Drawing.Color.Red
                ScriptManager.RegisterClientScriptBlock(Me, Me.GetType, "whatever", "Recaptcha.reload();", True)
                UpdatePanel3.Update()
            End If


 
New Post
8/25/2010 12:17 PM
 
Heisa

Why you do not use core DNN CAPTCHA? Because no audio and refresh?

Sergey
 
New Post
8/26/2010 3:24 AM
 
Hi Sergey,

Thx for your reply!

I've read several forums stating the DotNetnuke captcha is not very secure and has some problems with caching...
So I decided to go with the recaptha solution...

By the way I am using Dotnetnuke version 04.09.03. Maybe the Dotnetnuke captcha has improved in the latest releases?

Regards,
Heisa
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesreCAPTCHA in Dotnetnuke modulereCAPTCHA in Dotnetnuke module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out