自动刷新窗口小部件,而无需重新加载页面,并且无需使用ajax更新面板概念 [英] Automaticlly refresh the widget with out page reloading and without using ajax update panel concepts

查看:80
本文介绍了自动刷新窗口小部件,而无需重新加载页面,并且无需使用ajax更新面板概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的仪表板页面中有小部件.我想自动刷新小部件以访问数据库并自动获取记录

从那里开始特定的时间间隔,无需重新加载页面,也无需使用任何类型的ajax更新面板.因为我无法使用ajax

我网站上的东西.有人可以帮我提供好主意吗?.

预先感谢.

Hi All,

I have widgets in my dashboard page.I want automatically refresh the widgets to hit the database and fetch the records automatically

from there for particular time intervals, without page reloading and without using any kind of ajax update panel.Because i can''t use ajax

kind of thing in my website.Can any one help me with good ideas?.

Thanks in advance.

推荐答案

我希望允许您在应用程序中使用Cache.

为了满足您的要求,您可以使用Substitution Control.
替换控件为部分缓存了大部分内容的页面提供了简化的解决方案,以进行部分页面缓存.您可以输出缓存整个页面,然后使用替换"控件指定页面中不受缓存影响的部分.高速缓存的区域仅执行一次,并从高速缓存中读取,直到高速缓存条目到期或清除.每次请求页面时都会执行动态区域.

请参见以下示例:
aspnet-substitution-control-example-how [ ^ ]
substitution-control-asp.net-3.5-single-article-157.aspx [ ^ ]
I hope that you are allowed to use Cache in your application.

To achieve your requirement you can go for using Substitution Control.
The Substitution control offers a simplified solution to partial page caching for pages where the majority of the content is cached. You can output-cache the entire page, and then use Substitution controls to specify the parts of the page that are exempt from caching. Cached regions execute only once and are read from the cache until the cache entry expires or is purged. Dynamic regions execute every time that the page is requested.

See below examples:
aspnet-substitution-control-example-how[^]
substitution-control-asp.net-3.5-single-article-157.aspx[^]


这篇关于自动刷新窗口小部件,而无需重新加载页面,并且无需使用ajax更新面板概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆