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