<%@ Page Language="C#" AutoEventWireup="true" Codebehind="List.aspx.cs" Inherits="eDocument.Server.Administrator.AbortedInstance.List"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
        <div>
            <asp:GridView ID="gridAbortedInstance" runat="server" AutoGenerateColumns="false"
                OnRowCommand="gridAbortedInstance_RowCommand" DataKeyNames="AbortedInstanceID">
                <Columns>
                    <asp:BoundField DataField="ReferenceNumber" HeaderText="ReferanseID" />
                    <asp:BoundField DataField="CreatedOn" HeaderText="Opprettet" />
                    <asp:BoundField DataField="SubmittedOn" HeaderText="Innsendt" />
                    <asp:BoundField DataField="AbortedOn" HeaderText="Avbrutt" />
                    <asp:BoundField DataField="Message" HeaderText="Feilmelding" />
                    <asp:BoundField DataField="StackTrace" HeaderText="Stacktrace" />
                    <asp:TemplateField HeaderText="Kjør">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkRun" CausesValidation="false" CommandArgument='<%# Eval("AbortedInstanceID") %>'
                                CommandName="Run" runat="server">Kjør</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            
            <asp:Button ID="btnRunAll" runat="server" Text="Kjør alle" />
        </div>
</asp:Content>