延迟加载用户控件 - ASP.NET

发布于 2024-10-07 05:22:52 字数 582 浏览 0 评论 0原文

我正在使用延迟加载方法通过使用此处概述的计时器方法来加载用户控件内容:

http://johanleino.wordpress.com/2009/06/15/lazy-loading-ascx-usercontrol-or-something-else-at-loadtime /

当只有一个用户控件时它效果很好,但当有多个用户控件时,它首先呈现页面,然后呈现用户控件 1 并等待以便计时器单击事件在到达用户控件 2 的计时器单击之前完成。

我想要更多的异步调用方法,其中所有用户控件的计时器事件都是独立触发的,而不是一个接一个地触发(看来这在像 dropthings 或 pageflakes 这样的门户中是可能的,< /strong> 使用客户端 ajax 方法)

这可能吗?非常感谢任何帮助。

I am using the lazy load approach for loading the user control content by using the timer method outlined here:

http://johanleino.wordpress.com/2009/06/15/lazy-loading-ascx-usercontrol-or-something-else-at-loadtime/

It works great when there's only one user control, but when there are multiple ones, it first renders the page, then renders the User control 1 and waits for the timer click event to be completed before it gets to the User control 2's timer click.

I want more of a async call approach where the timer events of all user controls are independently fired instead one after the other (it appears that this is possible in portals like dropthings or pageflakes that dont use client side ajax methods)

Is this possible? Any help is really appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷心人i 2024-10-14 05:22:52

一位朋友对一些需要很长时间才能渲染的用户控件做了类似的事情;检查此处: http ://ivowiblo.wordpress.com/2010/06/02/asp-net-webforms-lazypanel-deferred-content-loading-in-webforms/

希望有帮助

a friend did something similar for some usercontrols that took very long to render; check here: http://ivowiblo.wordpress.com/2010/06/02/asp-net-webforms-lazypanel-deferred-content-loading-in-webforms/

hope it helps

懵少女 2024-10-14 05:22:52

看看这个:http://encosia。 com/2007/09/19/aspnet-ajax-timer-trouble-location-is-key/

并查看最后的“小测验”和莫里斯的评论。

Check this out: http://encosia.com/2007/09/19/aspnet-ajax-timer-trouble-location-is-key/

and look at the "pop quiz" at the end and the comment by Maurice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文