<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="MoreLog.aspx.cs" Inherits="MoreLog" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" DataKeyNames="log_id" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="log_id" DataNavigateUrlFormatString="~/LogList.aspx?log_id={0}"
                DataTextField="log_title" HeaderText="日志标题" />
            <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:DesertEagleConnectionString2 %>"
        OnSelecting="SqlDataSource1_Selecting" SelectCommand="SELECT * FROM [DE_logs] WHERE (([bloger_name] = @bloger_name) AND ([is_hide] = @is_hide))">
        <SelectParameters>
            <asp:Parameter Name="bloger_name" Type="String" />
            <asp:Parameter Name="is_hide" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

