错误:无法与ID为“UpdatePanel1'注销的UpdatePanel [英] Error: Cannot unregister UpdatePanel with ID 'UpdatePanel1'

查看:904
本文介绍了错误:无法与ID为“UpdatePanel1'注销的UpdatePanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已更新
我得到的错误:
不能用IDUpdatePanel1',因为它并没有使用ScriptManager注册注销的UpdatePanel。如果在UpdatePanel从控制树中删除,后来再次添加,这是不支持此可能发生。
参数名:的UpdatePanel

UPDATED I am getting the error: Cannot unregister UpdatePanel with ID 'UpdatePanel1' 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

我在页面上唯一的面板不是动态的,是在.aspx页面上codeD。

The only panel I have on the page is not dynamic and is coded on the .aspx page.

问题是我没有我与UpdatePanel1ID页上的一个UpdatePanel。

The problem is I do not have an UpdatePanel on my page with ID of "UpdatePanel1".

此外,当我在Chrome上运行它工作正常,但是当我在IE9运行我得到这个错误。

Also when I run in Chrome it works fine, but when I run in IE9 I get this error.

我还没有编辑过一段时间这个页面,这是以前的工作。

I have not edited this page in some time and it was working before.

任何帮助将是AP preciated。

Any help would be appreciated.

更新:我发现了previous页面上我有UpdatePanel1和UpdatePanel2。在previous页面上我做一个Server.Transfer的新的一页。

UPDATE: I found out that on the previous page I have UpdatePanel1 and UpdatePanel2. on the previous page I am doing a server.transfer to the new page.

在调试它转移到新的页面,然后以某种方式回到原来的页面,将触发卸载事件(如果我将它们放置在页面上的UpdatePanel的卸载事件。

When debugging It transfers to new page, then somehow goes BACK to the original page and will trigger the unload events (if I place them in the page on the unload events for the UpdatePanels.

这使得错误走开不能注销面板,但随后的下一个页面没有加载任何东西,它显示为空白。我通过这一切步骤和它看起来像它应该加载的一切,但我不知道为什么它没有在网页上显示的任何东西,如果我查看源代码,它并没有多少。

This makes the error go away for cannot unregister panel, but then the next page does not load ANYTHING, it appears blank. I step through it all and it looks like it should load everything, but I am not sure why it is not displaying anything on the page, if I view source it does not have much.

请注意:我也使用母版页和脚本管理器是在母版页

NOTE: I am also using master pages and the script manager is in the master page.

推荐答案

找到解决(问题以及发现原因)

Found solution (well found cause of problem)

不管是什么原因我onsbumit形式回报JavaScript验证了这个问题。

For whatever reason my onsbumit form return javascript validation was the problem.

我不得不改变的OnClientClick返回验证VS什么我如果(验证= FALSE)返回false)。

I just had to change the onclientclick to return validate vs what I had if(validate = false) return false).

不管是什么原因,是造成我的所有问题。

For WHATEVER reason that was causing all my problems.

这篇关于错误:无法与ID为“UpdatePanel1'注销的UpdatePanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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