<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="Templates.aspx.cs" Inherits="admin_Templates" Title="ImageTemplate.NET :: Test Template"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
<h1>Templates</h1>

<p>These image templates have been defined.</p>
<hr />

    <asp:Repeater runat="server" ID="imageTemplateRepeater">
    <HeaderTemplate>
    <table>
     <tr>
       <td class="tableCaption">ID</td>
       <td class="tableCaption">Width</td>
       <td class="tableCaption">Height</td>
       <td></td>
      </tr>
    </HeaderTemplate>
     <ItemTemplate>
      <tr>
       <td><%# Eval("Id") %></td>
       <td><%# Eval("Width") %></td>
       <td><%# Eval("Height") %></td>
       <td><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/admin/TestTemplate.aspx?templateId=" + Eval("Id") %>'>Test</asp:HyperLink></td>
      </tr>
     </ItemTemplate>
     <AlternatingItemTemplate>
      <tr class="altRow">
       <td><%# Eval("Id") %></td>
       <td><%# Eval("Width") %></td>
       <td><%# Eval("Height") %></td>
       <td><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/admin/TestTemplate.aspx?templateId=" + Eval("Id") %>'>Test</asp:HyperLink></td>
      </tr>
     </AlternatingItemTemplate>
     <FooterTemplate>
     </table>
     </FooterTemplate>
    </asp:Repeater>
    
    <asp:LinkButton ID="lnkReset" runat="server" Text="Reset Template Cache" OnClick="lnkReset_Click" />
</asp:Content>

