Cache ASP.Net Tutorial

File: Control.ascx
<%@ Control Language="C#" ClassName="ProductFileDependency"
%> <%@ OutputCache Duration="9999" VaryByParam="none" %>

    void Page_Load()
    {
        CacheDependency depend = new CacheDependency(MapPath("~/Products.xml"));
        this.CachePolicy.Dependency = depend;
    }

User Control Time:
<%= DateTime.Now.ToString("T") %>

    id="grdProducts"
    DataSourceID="srcProducts"
    Runat="server" />
    id="srcProducts"
    DataFile="Products.xml"
    Runat="server" />