Hey gang, just thought I'd let y'all know about the latest 4Guys
article.


Displaying Cached XML Data in a DataGrid, and Intelligently Refreshing
the Data
http://aspnet.4guysfromrolla.com/articles/121802-1.aspx

Synopsis:
One of the coolest and most powerful aspects of the .NET Framework is
the built-in caching APIs. These caching APIs make caching through
ASP.NET Web pages painfully simple. When discussing caching with
regards to an ASP.NET Web page there are two classes of caching:
output caching and data caching.

Output caching is the caching of the HTML output of an ASP.NET Web
page. This cached HTML is stored on disk and is cached for a specific
period of time (say 30 seconds). With data caching, programming
objects (such as integers, DataSets, ArrayLists, etc.) are stored in
an in-memory cache. Items stored in the data cache can have their
expiration specified by a sliding time scale, an absolute time scale,
or via a cache dependency. A cache dependency can be a file or a
directory in the file system, or a key in the cache. When the
dependency changes - the file is modified, the directory is altered,
or the cache item is altered or evicted - the item with the cache
dependency is evicted from the cache.

In this article we will first look at caching a DataSet in the data
cache, and binding this cached DataSet to a DataGrid. Specifically,
this cached DataSet will contain the data from an XML file residing on
the Web server's file system. A cache dependency will then be used so
that the cached DataSet is evicted from the data cache when the XML
file's contents are altered. In essence we will be examining how to
create a DataGrid that displays cached data, but whose data is never
stale! (That is, whenever the data changes, the cached version of the
data is updated as well.)


Happy Programming!

     Scott Mitchell
     [EMAIL PROTECTED]
     http://www.4GuysFromRolla.com/
     http://www.ASPMessageboard.com/
     http://www.ASPFAQs.com/

* When you think ASP, think 4GuysFromRolla.com!



---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to