找不到ID为"xxx"的UpdatePanel.如果正在动态更新,则它必须位于另一个UpdatePanel中 [英] Could not find UpdatePanel with ID 'xxx'. If it is being updated dynamically then it must be inside another UpdatePanel

查看:68
本文介绍了找不到ID为"xxx"的UpdatePanel.如果正在动态更新,则它必须位于另一个UpdatePanel中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有Ajax选项卡控件的页面,其中一个选项卡中是一个Web控件,它作为Telerik RadGrid,其中编辑"表单指向另一个Web控件.该编辑表单还包含Ajax选项卡,并且在其中一个选项卡上,还有一个Web控件的Ajax模式弹出窗口.

I have a page with Ajax Tab controls, within one of the tabs is a webcontrol that as a Telerik RadGrid, with Edit forms pointing to another web control. That edit form also contains Ajax Tabs and on one of those tabs, there is an Ajax modal popup of yet another webcontrol.

最初的Web控件在其自己的页面上使用时可以正常工作,但是在所需的Ajax选项卡中使用该控件时,编辑表单无法显示.脚本管理器抛出以下错误:

The initial webcontrol works fine when used on its own page, but the edit form fails to appear when the control is used within the Ajax Tabs as desired. The script manager is throwing the following error:

Microsoft JScript运行时错误:Sys.InvalidOperationException:找不到ID为'xxx'的UpdatePanel.如果要动态更新,则它必须位于另一个UpdatePanel中.

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

在此方面的任何帮助将不胜感激.

Any assistance with this would be appreciated.

推荐答案

在Telerik RadAjaxManager中向其添加不可见的控件时,就会发生此问题.

This issue occurs in Telerik RadAjaxManager when you adds invisible controls to it.

因此,在需要显示/隐藏AJAX控件的情况下,建议从后面的代码中以语法方式添加AJAX设置(基于控件可见性状态),而不是ASPX代码.

So in case of your in need to show/hide AJAX controls, it is recommended to add AJAX settings grammatically from you code behind (based on control visibility state) instead of ASPX code.

有关更多信息:请在Telerik论坛上查看此答案.

这篇关于找不到ID为"xxx"的UpdatePanel.如果正在动态更新,则它必须位于另一个UpdatePanel中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆