<%@ Page language="c#" Codebehind="List.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.eDocumentInstance.List"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>eDocument Instance list</h1>
			<asp:datagrid id="dgInstances" runat="server" AutoGenerateColumns="False" Width="100%" HeaderStyle-CssClass="HeaderStyle"
				ItemStyle-CssClass="ItemStyle" AlternatingItemStyle-CssClass="AlternatingItemStyle" AllowSorting="False">
				<Columns>
					<asp:BoundColumn DataField="eDocumentTemplateID" Visible="False"></asp:BoundColumn>
					<asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="eDocument Template Name"></asp:BoundColumn>
					<asp:BoundColumn DataField="Comment" HeaderText="Comment"></asp:BoundColumn>
					<asp:BoundColumn DataField="CreatedOn" SortExpression="CreatedOn ASC" HeaderText="Created"></asp:BoundColumn>
					<asp:BoundColumn DataField="Count" SortExpression="eDocument Instance Count ASC" HeaderText="Count"></asp:BoundColumn>
					<asp:HyperLinkColumn Text="Xml" Target="_self" HeaderText="Xml" DataNavigateUrlFormatString="~/eDocumentInstance/DownloadAggregatedXmlResponse.aspx?eDocumentTemplateID={0}"
						DataNavigateUrlField="eDocumentTemplateID"></asp:HyperLinkColumn>
					<asp:ButtonColumn Text="Detaljer" CommandName="Details"></asp:ButtonColumn>
				</Columns>
			</asp:datagrid><asp:label id="lblMessage" runat="server" ForeColor="Red"></asp:label>
</asp:Content>