locked
Recaptcha disappears during PostBack RRS feed

  • Question

  • User944339287 posted

    Hi guys..  I have seen a couple of other posts on here regarding the use of Recaptcha with ASP.net UpdatePanels but have not yet found an answer that solves my problem.

    the recaptcha is loading properly until AsyncPostBack (txt_username)

    <script src='https://www.google.com/recaptcha/api.js'></script>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
    <ContentTemplate>
        <asp:TextBox ID="txt_username" runat="server" AutoPostBack="True"></asp:TextBox>
        <div class="g-recaptcha" data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXX"></div>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="txt_username" EventName="TextChanged" /> 
    </Triggers>
    </asp:UpdatePanel>

    Monday, May 2, 2016 12:08 AM

Answers