October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can create a dependency between a cached page and a file (or set of files) on your hard drive. When the file is modified, the cached page is automatically dropped and regenerated with the next page request.
For example, the page in Listing 29.10 displays the contents of an XML file in a GridView. The page is cached until the XML file is modified (see Figure 29.5).
Figure 29.5. Caching a page with a file dependency.

Listing 29.10. OutputCacheFileDependency.aspx

The page in Listing 29.10 displays ...