不使用计时器自动刷新 [英] Auto refresh without using timers

查看:92
本文介绍了不使用计时器自动刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,

我有一个查询,如果我在主页上使用多用户系统,则有一个仪表板将其视为网格,其中显示xyz表的网格值。

因为它是一个多用户系统,因为数据可以插入到xyz表中,如果任何用户在用户插入数据后立即在xyz表中插入数据,则更改会自动反映在主数据中页面仪表板。

就像gmail的邮件系统一样。

Hello Friends,
I have one query,If i use a multi-user system in that on main page there is a dashboard consider it as a grid in that grid value of xyz table is displayed.
As it is a multiuser system in that data can be inserted in that xyz table, if any user inserts data in the xyz table as soon as the user inserts the data the changes gets automatically reflected in main page dashboard.
Just like mail systems of gmail and all.

推荐答案

没有计时器?这是一种有效的遗留方法: http://en.wikipedia.org/wiki/Meta_refresh [ ^ ]。



-SA
Without timers? This is a legacy method which works: http://en.wikipedia.org/wiki/Meta_refresh[^].

—SA


您可以选择 ASP.NET中的数据库缓存依赖关系 [ ^ ]

支持数据库缓存依赖关系ASP.NET [ ^ ]

使用SQL缓存依赖关系 [ ^ ]

ASP.NET缓存依赖关系 [ ^ ]

ASP.NET 2.0中的缓存依赖关系 [ ^ ] < br $>


--Amit
You can go for Database Cache Dependencies in ASP.NET[^]
Supporting Database Cache Dependencies in ASP.NET[^]
Using SQL Cache Dependency[^]
ASP.NET Caching Dependencies[^]
Cache Dependency in ASP.NET 2.0[^]

--Amit


protected void Page_Load(object sender, EventArgs e)
   {
       string sss = "xxx";
       Response.AppendHeader("Refresh", "2");
       if (!IsPostBack)
       {
           Response.Write(sss);


       }


   }


这篇关于不使用计时器自动刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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