<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="NoticeList.aspx.cs" Inherits="NoticeList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="notice_id"
        DataSourceID="SqlDataSource1" Height="9px" Style="position: static;" Width="446px" CellPadding="4" ForeColor="#333333" GridLines="None">
        <Columns>
            <asp:BoundField DataField="notice_id" HeaderText="notice_id" InsertVisible="False"
                ReadOnly="True" SortExpression="notice_id" Visible="False" />
            <asp:HyperLinkField DataNavigateUrlFields="notice_id" DataNavigateUrlFormatString="Notice.aspx?notice_id={0}"
                DataTextField="title" />
            <asp:BoundField DataField="contents" HeaderText="公告内容" SortExpression="contents" />
            <asp:BoundField DataField="pubdate" HeaderText="日期" SortExpression="pubdate" />
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>"
        OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [DE_notice] ORDER BY [pubdate] DESC">
    </asp:SqlDataSource>
</asp:Content>

