<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="ResourceCenter.aspx.cs" Inherits="ResourceCenter" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;<table style="width: 552px; height: 303px">
        <tr>
            <td style="width: 100px">
                </td>
            <td style="width: 100px">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="资源中心"></asp:Label></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="resource_id"
                    DataSourceID="SqlDataSource1" Height="10px" Width="524px" AllowPaging="True" PageSize="8" CellPadding="4" ForeColor="#333333" GridLines="None">
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="file_name" DataNavigateUrlFormatString="~/DownLoad.aspx?load={0}"
                            DataTextField="file_name" HeaderText="资源名称" />
                        <asp:BoundField DataField="description" HeaderText="资源描述" SortExpression="description" />
                        <asp:BoundField DataField="bloger_name" HeaderText="上传者" SortExpression="bloger_name" />
                        <asp:BoundField DataField="pub_date" HeaderText="上传日期" SortExpression="pub_date" />
                    </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>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 46px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString2 %>"
                    SelectCommand="SELECT * FROM [DE_resource]"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

