This is a migrated thread and some comments may be shown as answers.

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

4 Answers 336 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ade
Top achievements
Rank 1
Ade asked on 24 Feb 2011, 08:18 PM
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 

4 Answers, 1 is accepted

Sort by
0
Ade
Top achievements
Rank 1
answered on 25 Feb 2011, 09:56 PM
resolved
0
Dave
Top achievements
Rank 1
answered on 28 Jul 2011, 03:40 PM
How was it resolved.  Please post your solution.
0
Kurt
Top achievements
Rank 1
answered on 08 Feb 2013, 03:06 PM
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.
0
Maria Ilieva
Telerik team
answered on 12 Feb 2013, 10:14 PM
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.
Tags
Ajax
Asked by
Ade
Top achievements
Rank 1
Answers by
Ade
Top achievements
Rank 1
Dave
Top achievements
Rank 1
Kurt
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or