且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么ASP.NET导致&Q​​UOT;操作已中止"错误在IE7?

更新时间:2023-02-17 13:07:18

您的收藏和绑定的复杂性都推出了竞争条件

The intricacies of your collection and bindings have introduced a race condition.

操作已中止的错误是一个不起眼的IE的Bug,当页面加载完成之前,DOM追加发生。

The Operation Aborted error is an obscure IE bug, which occurs when the DOM is appended before the page is finished loading.

的操作已中止错误

请参考这个问题:
What是Internet Explorer?

这是本质上不是一个asp.net的问题,但是,你的情况,asp.net是未能控制执行顺序,因为你写的数据绑定的方式。换言之,取决于在其中资​​源负载和执行(其当前没有被控制),条件存在的顺序。

This isn't intrinsically an asp.net problem, but, in your case, asp.net is failing to control the order of execution, due to the way you've written the databind. In other words, depending on the order in which resources load and execute (which current is not being controlled), the condition exists.

顺便说一下,可能的难以重现在开发环境的条件,如果你有一些这些资源的缓存的在前端,或者如果他们加载更快(是可用的本地网的),为什么你无法看到错误这可以解释。

Incidentally, it may be harder to reproduce the condition in your development environment if you have some of these resources cached on the front end, or if they load more quickly (being available on a local network), which would explain why you're having trouble seeing the error.