我有一个包含UpdatePanel的UserControl。当我把一个页面上,它引发以下错误:什么原因导致'无法取消注册UpdatePanel'错误?
Cannot unregister UpdatePanel with ID 'ReviewContentUpdatePanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel
ReviewContentUpdatePanel
是它没有被删除或代码添加更新面板&的名称,它存在于aspx页面并不会被删除。有没有人遇到过这个?
你有没有包含在页面上有一个ScriptManager UserControl? – tvanfosson 2008-10-27 02:31:35
是的,和usercontrol上的scriptproxy – 2008-10-27 02:32:41
你可以发布代码吗?大多数对这个错误的引用处理动态添加updatepanels/controls。用户控件是否动态添加? – tvanfosson 2008-10-27 03:06:42