Report a bug when using RadCaptcha in RadAjaxManager

2 posts, 1 answers
  1. mastermehdi
    mastermehdi avatar
    39 posts
    Member since:
    Apr 2010

    Posted 09 Apr 2012 Link to this post

    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!
  2. Answer
    Slav
    Admin
    Slav avatar
    1356 posts

    Posted 10 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top