IE8 不聚焦时出现聚焦错误
几周前,我将网站从 .NET 2.0 升级到 .NET 4.0,包括升级了我的 ajax 工具包。使用IE9、FF、Chrome进行测试,一切正常。
我现在注意到我的 3 个页面在 IE8 中不再正确加载。我得到:
用户代理:Mozilla/4.0(兼容;MSIE 8.0;Windows NT 5.1; 三叉戟/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;一带一路/2; InfoPath.3;询问TbORJ/5.13.1.18107; BO1IE8_v1;ENUS) 时间戳:2012 年 1 月 11 日星期三 世界标准时间 16:32:11
消息:无法将焦点移至控件,因为该控件不可见、未启用或属于不接受焦点的类型。
所有 3 个页面都包含 ajax 选项卡控件,其中包含超过 10 个选项卡,仅此而已。该消息说这是焦点问题,但我没有将焦点设置在任何地方。它们在升级之前就可以工作,从那时起我就没有在错误消息中更改任何比 ForeColor 更复杂的内容。我还有其他带有 ajax 选项卡控件的页面,它们运行良好。
我一整天都在谷歌上搜索,但我所看到的似乎都不起作用。
编辑:我已经缩小了问题的范围。当存在嵌套选项卡控件时会显示错误。
I upgraded my site from .NET 2.0 to .NET 4.0 a few weeks ago, including an upgrade of my ajax toolkit. Tested with IE9, FF, and Chrome, and it all worked fine.
I now noticed that 3 of my pages no longer load properly in IE8. I get:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; BRI/2; InfoPath.3; AskTbORJ/5.13.1.18107; BO1IE8_v1;ENUS) Timestamp: Wed, 11 Jan 2012
16:32:11 UTC
Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
All 3 pages contain ajax tab controls with more than 10 tabs and not much else. The message says it's a focus problem, but I'm not setting the focus anywhere. They were working before the upgrade, and since then I haven't changed anything more complex than ForeColor on my error messages. I have other pages with ajax tab controls that are working perfectly.
I've been googling all day, but nothing I've seen seems to work.
EDIT: I've narrowed down the problem somewhat. Error shows when there are nested tab controls.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来这是 11 月份发布的 AJAX Control Toolkit
http://ajaxcontroltoolkit.codeplex.com/workitem 的问题/27053
Looks like it's a problem with the November release of the AJAX Control Toolkit
http://ajaxcontroltoolkit.codeplex.com/workitem/27053