<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="BlogList.aspx.cs" Inherits="BlogList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" DataKeyNames="bloger_name" DataSourceID="SqlDataSource1" PageSize="8">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="bloger_name" DataNavigateUrlFormatString="~/LogView.aspx?bb={0}"
                DataTextField="bloger_name" HeaderText="博主名" />
            <asp:BoundField DataField="bloger_title" HeaderText="博客名称" SortExpression="bloger_title" />
            <asp:BoundField DataField="description" HeaderText="描述" SortExpression="description" />
            <asp:BoundField DataField="pub_date" HeaderText="注册日期" SortExpression="pub_date" />
            <asp:BoundField DataField="click_count" HeaderText="点击量" SortExpression="click_count" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>"
        OnSelecting="SqlDataSource1_Selecting" SelectCommand="SELECT [bloger_name], [bloger_title], [description], [pub_date], [click_count], [bloger_enable], [is_forbid], [college_id] FROM [DE_bloger] WHERE (([bloger_enable] = @bloger_enable) AND ([is_forbid] = @is_forbid) AND ([college_id] = @college_id))">
        <SelectParameters>
            <asp:Parameter DefaultValue="True" Name="bloger_enable" Type="Boolean" />
            <asp:Parameter DefaultValue="False" Name="is_forbid" Type="Boolean" />
            <asp:Parameter Name="college_id" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

