我有一個包含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