Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Report a bug when using RadCaptcha in RadAjaxManager

Answered Report a bug when using RadCaptcha in RadAjaxManager

Feed from this thread
  • Posted on Apr 9, 2012 (permalink)

    Hi
    I using Telerik version 2011.3.1122.40 

    Please run this Codes:

    MasterPage.master:
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!doctype html>
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <Telerik:RadScriptManager ID="scriptManager" runat="server" />
            <Telerik:RadAjaxManager ID="ajaxManager" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="ajax">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="ajax" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </Telerik:RadAjaxManager>
            <asp:Panel ID="ajax" runat="server">
                <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </asp:Panel>
        </form>
    </body>
    </html>

    Default.aspx:
    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <telerik:RadCaptcha ID="captcha" Runat="server"
            CaptchaLinkButtonText="refresh"
            EnableRefreshImage="true">
        </telerik:RadCaptcha>
    </asp:Content>

    when I click on refresh link, RadCaptcha will be hidden!

    Reply

  • Answer Slav Slav admin's avatar

    Posted on Apr 10, 2012 (permalink)

    Hi Mehdi,

    Updating a RadCaptcha control via a RadAjaxManager when its refresh functionality is activated is not a supported scenario. This is because RadCaptcha uses an UpdatePanel to refresh its code and it is not recommended to update the same part of a page with UpdatePanel and RadAjaxManager.

    You can utilize an UpdatePanel instead of a RadAjaxManager, although there still could be problems in some cases as nesting UpdatePanels is not a good practice.

    All the best,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Report a bug when using RadCaptcha in RadAjaxManager
Related resources for "Report a bug when using RadCaptcha in RadAjaxManager"

ASP.NET Captcha Features  |  Documentation  |  Demos  | Step-by-step Tutorial  ]