Hi David,
There are 2 aspects to this task:
1- The browser display being refreshed every fixed interval: As Patrice
responded in an earlier post, you achieve this using a meta tag in the aspx
markup. For example to cause the browser to refresh the page every 2 minutes:
<META HTTP-EQUIV="REFRESH" CONTENT=120>
2- The dataset:
a. For example, if you have a dataset of the navigational
menu entries for a website, you can retrieve it once, save it in the
application cache (to be used by every visitor of the site) and only refresh
the cache if the database entries have been updated. In ASP.NET 1.01 you
might use the CacheDependency, e.g.:
'assuming that a change in the database would save a control file on the
webserver
'start tracking any change to the control file
Dim MenuControlFile As New System.Web.Caching.CacheDependency("Control.txt",
Now())
'save your menu items dataset in the cache to be retrieved whenever needed
in the applicaion
'by writing: DataSet myDataSet = Ctype(Cache("MyMenu"), DataSet)
Cache.Insert("MyMenu", ds, MenuControlFile)
b. If you are using ASP.NET 2.0 with SQL server 2005 then
you might consider the “Sql Server 2005 Notification-based Cache Invalidationâ€
http://66.129.71.130/QuickStartv20/aspnet/doc/caching/SQLInvalidation.aspx