树形视图在 IE 中速度缓慢?

发布于 2024-09-06 02:39:32 字数 293 浏览 1 评论 0原文

我有一个包含大约 200 条记录的树视图,需要随时完全展开(因此无需按需加载)。它位于更新面板内,更新模式设置为有条件。页面上还有其他设置为有条件的更新面板。根据用户操作,可能需要通过调用 databind 并更新 updatepanel 来重建树。在 Firefox 中一切正常,最长回发大约 2 秒。使用 IE,有时我必须等待长达 30 秒,而且该操作可能与树无关,只是更改其自己的更新面板中的下拉列表会花费很长时间。我已经考虑过视图状态的大小,并且生成的原始 HTML 可能会导致延迟,但这不会影响两个浏览器吗?任何人都知道是什么导致 IE 速度如此之慢???谢谢!

I have a treeview with around 200 records that needs to be fully expanded at all times (so no loading on demand). It is inside of an update panel with the updatemode set to conditional. There are other update panels on the page as well that are set to conditional. Depending on user actions the tree may need to be rebuilt by calling databind and updating the updatepanel. Everything works fine in firefox, longest postback about 2 seconds. With IE I have to wait up to 30 seconds sometimes and the action may have nothing to do with the tree just changing a dropdown in its own updatepanel takes forever. I have considered the size of viewstate and just raw HTML generated may be causing the delay but wouldn't that effect both browsers? Anyone have anyideas what is making it so slow in IE??? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文