<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="IPInfo.aspx.cs" Inherits="Admin.IPInfo" Title="IP Address Information" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <br />
    <br />
    <h3>
        Information for IP Address:
        <asp:Label ID="lblIPAddress" runat="server" EnableViewState="false"></asp:Label>
    </h3>
    <asp:GridView ID="gvUsernames" runat="server" AutoGenerateColumns="false" EnableViewState="false">
        <Columns>
            <asp:BoundField HeaderText="User Names" DataField="Username" />
        </Columns>
    </asp:GridView>
    <br />
    <asp:GridView ID="gvComments" runat="server" AutoGenerateColumns="false" AllowPaging="true"
        EnableViewState="false" PageSize="20" OnPageIndexChanging="gvComments_PageIndexChanging">
        <Columns>
            <asp:BoundField HeaderText="User Name" DataField="Username" />
            <asp:HyperLinkField HeaderText="Article" DataNavigateUrlFormatString="~\ViewNewsItem.aspx?NewsItemID={0}"
                DataNavigateUrlFields="NewsItemID" DataTextField="Article" />
            <asp:BoundField HeaderText="Time" DataField="Time" />
            <asp:BoundField HeaderText="Comment" DataField="Comment" ItemStyle-Width="400" />
        </Columns>
    </asp:GridView>
    <asp:LinqDataSource ID="ldsInfo" runat="server" ContextTypeName="BlogNETDataContext"
        TableName="Comments" AutoSort="false" OrderBy="Time DESC" EnableDelete="true"
        EnableViewState="false" OnSelecting="ldsInfo_Selecting">
    </asp:LinqDataSource>
</asp:Content>
