File: Control.ascx
<%@ Control Language="C#" ClassName="SharedProducts"%>
<%@ OutputCache Duration="600" VaryByParam="none" Shared="true" %>
User Control Time:
<%= DateTime.Now.ToString() %>
id="grdProducts"
DataSourceID="srcProducts"
Runat="server" />
id="srcProducts"
ConnectionString="<%$ ConnectionStrings:Products %>"
SelectCommand="SELECT Title,Director FROM Products"
Runat="server" />