<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="CollegeList.aspx.cs" Inherits="CollegeList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="college_id" DataSourceID="SqlDataSource1"
        ForeColor="#333333" GridLines="None" PageSize="8">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="college_id" DataNavigateUrlFormatString="~/BlogList.aspx?aa={0}"
                DataTextField="college_name" HeaderText="学院名称" />
            <asp:BoundField DataField="bloger_count" HeaderText="博客量" SortExpression="bloger_count" />
        </Columns>
        <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:DesertEagleConnectionString2 %>"
        SelectCommand="SELECT * FROM [DE_college] ORDER BY [bloger_count] DESC"></asp:SqlDataSource>
</asp:Content>

