<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="HotBlogView.aspx.cs" Inherits="BlogView" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
        DataKeyNames="bloger_name" DataSourceID="SqlDataSource1" ForeColor="#333333"
        GridLines="None">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="bloger_name" DataNavigateUrlFormatString="~/LogView.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" />
            <asp:BoundField DataField="click_count" HeaderText="点击量" SortExpression="click_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>
    &nbsp;
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>"
        SelectCommand="SELECT [bloger_name], [bloger_title], [description], [pub_date], [click_count], [bloger_enable], [is_forbid] FROM [DE_bloger] WHERE (([bloger_enable] = @bloger_enable) AND ([is_forbid] = @is_forbid)) ORDER BY [click_count] DESC" OnSelecting="SqlDataSource1_Selecting">
        <SelectParameters>
            <asp:Parameter DefaultValue="True" Name="bloger_enable" Type="Boolean" />
            <asp:Parameter DefaultValue="False" Name="is_forbid" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

