<%@ Page Language="C#" MasterPageFile="~/master.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="10228宿舍论坛" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="page" class="page">
            <h2 runat=server id="h2"></h2>
            <asp:GridView ID="articlelist" runat="server" CellPadding="4" ForeColor="#6C7E4A" GridLines="Horizontal" AllowPaging="True" AutoGenerateColumns="False" Width="100%">
                <FooterStyle BackColor="#4ca8e5" Font-Bold="True" ForeColor="#ffffff" />
                <RowStyle BackColor="#F9F9F9" BorderColor="#4ca8e5" BorderStyle="Solid" BorderWidth="1px" />
                <PagerStyle BackColor="#BCD988" ForeColor="#ffffff" HorizontalAlign="Left"/>
                <HeaderStyle BackColor="#4ca8e5" Font-Bold="True" ForeColor="#ffffff" HorizontalAlign="Center" VerticalAlign="Middle" />
                <AlternatingRowStyle BackColor="White" />
                <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
                    NextPageText="下一页" PreviousPageText="上一页" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="文章编号" ReadOnly="True" Visible="False" />
                    <asp:BoundField DataField="replaynum" HeaderText="回复" />
                    <asp:BoundField DataField="readnum" HeaderText="阅读" />
                    <asp:BoundField DataField="title" HeaderText="题目" />
                    <asp:BoundField DataField="username" HeaderText="作者" />
                    <asp:BoundField DataField="classname" HeaderText="类别" />
                    <asp:BoundField DataField="time" HeaderText="发表时间" />
                    <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="article.aspx?id={0}"
                        HeaderText="查看" Text="View" />
                </Columns>
            </asp:GridView>
        </div>
</asp:Content>

