Sys.InvalidOperationException: Could not find UpdatePanel with ID If it is being updated dynamically then it must be inside another UpdatePanel

5 posts, 0 answers
  1. Ade
    Ade avatar
    4 posts
    Member since:
    Feb 2011

    Posted 24 Feb 2011 Link to this post

    Hello guys, i have been having a problem with this and been on the forums all day to no avail. i have a multivew with a tree that is a usercontrol and a RadAjaxManager for link buttons. When i set enable ajax to false, it works so i know its an ajax issue. I am not using any update panels. i keep getting this error when i click my link button:

    Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolderMain_ctl00_ContentPlaceHolderMain_ParentTreePanelPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

    Snippet:

    <%@ Page Language="C#" MasterPageFile="~/DEP-tree.master" AutoEventWireup="True"<br>
       Inherits="DEPSite.Management.EntityDefinitions" Title="DEP Element Definitions"<
    br
      CodeBehind="EntityDefinitions.aspx.cs" %><
    br>
    <
    br><%@ Register Src="~/UserControls/EntityTreeUC.ascx" TagName="EntityTree" TagPrefix="uc2" %>
    <
    br><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <
    br><br><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderSide1" runat="Server"><br>
        <
    uc2:EntityTree ID="EntitySelectionTree" runat="server" ShowEntityStatus="true" SelectFirstNode="true" />
    <
    br></asp:Content><br><br> <telerik:RadAjaxManager runat="server" ID="AjaxManager" EnableAJAX="true">
    <
    br>        <AjaxSettings><br><telerik:AjaxSetting AjaxControlID="ParentLinkButton">
    <
    br>                <UpdatedControls>
    <
    br>                    <telerik:AjaxUpdatedControl ControlID="ParentTree"/>
    <
    br>                </UpdatedControls><br>            </telerik:AjaxSetting>
    <
    br></AjaxSettings><br>
    <
    br><asp:View ID="ParentView" runat="server">
    <
    br>                <uc2:EntityTree ID="ParentTree" runat="server" ShowEntityStatus="true" SelectFirstNode="true" />
    <
    br>        </asp:View><br>
    ^format code block added a bunch of 'br's

    i have also tried putting the tree in a panel as suggested on some forum post already
    Thanks 
  2. Ade
    Ade avatar
    4 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    resolved
  3. Dave
    Dave avatar
    6 posts
    Member since:
    Jun 2010

    Posted 28 Jul 2011 Link to this post

    How was it resolved.  Please post your solution.
  4. Kurt
    Kurt avatar
    1 posts
    Member since:
    Feb 2011

    Posted 08 Feb 2013 Link to this post

    Great when people say it's solved, but don't say what they did....

    I'm having a similar issue with an UpdatePanel on a server that uses load balancing.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 12 Feb 2013 Link to this post

    Hi Kurt,

    In most cases the presented error appear due to nested Ajax setting on the page which causes nested UpdatePanels to render. Please share your scenario so that we could further suggest you possible solution.

    Kind regards,
    Maria Ilieva
    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.
Back to Top