<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="RecommendedBlogView.aspx.cs" Inherits="RecommendedBlogView" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        DataSourceID="SqlDataSource1" AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20" Width="549px">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="bloger_name" DataNavigateUrlFormatString="~/MoreLog.aspx?bb={0}"
                DataTextField="bloger_title" HeaderText="博客空间名" />
            <asp:BoundField DataField="description" HeaderText="空间介绍" SortExpression="description" />
            <asp:BoundField DataField="bloger_name" HeaderText="博主名" ReadOnly="True" SortExpression="bloger_name" />
            <asp:BoundField DataField="pub_date" HeaderText="注册时间" SortExpression="pub_date" Visible="False" />
            <asp:BoundField DataField="click_count" HeaderText="点击量" SortExpression="click_count" />
        </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:DesertEagleConnectionString2 %>"
        SelectCommand="SELECT * FROM [DE_bloger] WHERE ([is_top] = @is_top) ORDER BY [pub_date] DESC" OnSelecting="SqlDataSource1_Selecting">
        <SelectParameters>
            <asp:Parameter Name="is_top" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

