延迟加载用户控件 - ASP.NET
我正在使用延迟加载方法通过使用此处概述的计时器方法来加载用户控件内容:
当只有一个用户控件时它效果很好,但当有多个用户控件时,它首先呈现页面,然后呈现用户控件 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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一位朋友对一些需要很长时间才能渲染的用户控件做了类似的事情;检查此处: 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
看看这个: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.