Sys.InvalidOperationException: A control is already associated with the element 错误处理方法

Error名称:

JavaScript runtime error: Sys.InvalidOperationException: A control is already associated with the element

解决办法:

(1)检测你的Ajax和.NET的版本是否匹配,如果不匹配的话就去http://ajaxcontroltoolkit.codeplex.com/releases/view/107784查看和下载新的和匹配的版本。

(2)可以在页面的 设置控件的CausesValidation="false"。这方面的东西可以参考这篇博文:

http://www.dotnet-developer.de/2008/07/aspnet/a-control-is-already-associated-with-the-element/

 

posted @ 2013-07-04 17:03  WillShao  阅读(249)  评论(0编辑  收藏  举报