<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="LogSearchResult.aspx.cs" Inherits="LogSearchResult" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="log_id">
        <Columns>
            <asp:BoundField DataField="log_id" HeaderText="log_id" InsertVisible="False" ReadOnly="True"
                SortExpression="log_id" Visible="False" />
            <asp:HyperLinkField DataNavigateUrlFields="log_id" DataNavigateUrlFormatString="LogList.aspx?log_id={0}"
                DataTextField="log_title" HeaderText="为您搜索到的日志" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>"
        SelectCommand="SELECT [log_title], [log_id] FROM [DE_logs] WHERE ([log_title] LIKE '%' + @log_title + '%')">
        <SelectParameters>
            <asp:QueryStringParameter Name="log_title" QueryStringField="log_title" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

