<%@ Page Language="VB" AutoEventWireup="false" CodeFile="LogViewer.aspx.vb" Inherits="LogViewer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" DataSourceID="logSource" Width="742px">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="ID" />
                <asp:BoundField DataField="Message" HeaderText="Message" SortExpression="Message" />
                <asp:BoundField DataField="Trace" HeaderText="Trace" SortExpression="Trace" />
                <asp:BoundField DataField="Severity" HeaderText="Severity" SortExpression="Severity" />
                <asp:BoundField DataField="LogDateTime" HeaderText="LogDateTime" SortExpression="LogDateTime" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="logSource" runat="server" ConnectionString="<%$ ConnectionStrings:Charter.Website.WS.CommerceEngineConnectionString %>"
            SelectCommand="SELECT * FROM SESSIONSTATE.[log] order  by ID DESC"></asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
