1 <%@ Page Title="LanSpider Web Search" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
\r
3 <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
\r
4 <h1>LanSpider Web Search</h1>
\r
6 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
\r
8 <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
\r
9 <asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" PostBackUrl=""
\r
12 <asp:RadioButtonList ID="rblOptions" runat="server"
\r
13 RepeatDirection="Horizontal">
\r
14 <asp:ListItem Selected="True" Value="0">All</asp:ListItem>
\r
15 <asp:ListItem Value="1">Images</asp:ListItem>
\r
16 <asp:ListItem Value="2">Video</asp:ListItem>
\r
17 <asp:ListItem Value="3">Music</asp:ListItem>
\r
18 </asp:RadioButtonList>
\r
19 <asp:ListView ID="ListView1" runat="server">
\r
23 <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' />
\r
26 <a runat="server" id="pathLink" href='<%# Eval("path") %>' ><%# Eval("path") %></a>
\r
29 <asp:Label ID="sizeLabel" runat="server" Text='<%# Eval("size") %>' />
\r
32 <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
\r
36 <AlternatingItemTemplate>
\r
39 <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' />
\r
42 <a runat="server" id="pathLink" href='<%# Eval("path") %>' ><%# Eval("path") %></a>
\r
45 <asp:Label ID="sizeLabel" runat="server" Text='<%# Eval("size") %>' />
\r
48 <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
\r
51 </AlternatingItemTemplate>
\r
53 <table runat="server" style="">
\r
56 No files was found.</td>
\r
59 </EmptyDataTemplate>
\r
60 <InsertItemTemplate>
\r
63 <asp:Button ID="InsertButton" runat="server" CommandName="Insert"
\r
65 <asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
\r
69 <asp:TextBox ID="nameTextBox" runat="server" Text='<%# Bind("name") %>' />
\r
72 <asp:TextBox ID="pathTextBox" runat="server" Text='<%# Bind("path") %>' />
\r
75 <asp:TextBox ID="sizeTextBox" runat="server" Text='<%# Bind("size") %>' />
\r
78 <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
\r
81 </InsertItemTemplate>
\r
83 <table runat="server">
\r
86 <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
\r
87 <tr runat="server" style="">
\r
97 <tr ID="itemPlaceholder" runat="server">
\r
102 <tr runat="server">
\r
103 <td runat="server" style="">
\r
104 <asp:DataPager ID="DataPager1" runat="server">
\r
106 <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True"
\r
107 ShowNextPageButton="False" ShowPreviousPageButton="False" />
\r
108 <asp:NumericPagerField />
\r
109 <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="True"
\r
110 ShowNextPageButton="False" ShowPreviousPageButton="False" />
\r
120 <asp:Button ID="UpdateButton" runat="server" CommandName="Update"
\r
122 <asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
\r
126 <asp:TextBox ID="nameTextBox" runat="server" Text='<%# Bind("name") %>' />
\r
129 <asp:TextBox ID="pathTextBox" runat="server" Text='<%# Bind("path") %>' />
\r
132 <asp:TextBox ID="sizeTextBox" runat="server" Text='<%# Bind("size") %>' />
\r
135 <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
\r
138 </EditItemTemplate>
\r
139 <SelectedItemTemplate>
\r
142 <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' />
\r
145 <asp:Label ID="pathLabel" runat="server" Text='<%# Eval("path") %>' />
\r
148 <asp:Label ID="sizeLabel" runat="server" Text='<%# Eval("size") %>' />
\r
151 <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
\r
154 </SelectedItemTemplate>
\r
156 <asp:LinqDataSource ID="dsLinq" runat="server"
\r
157 ContextTypeName="SearchIndexDataContext" Select="new (name, path, size, type)"
\r
158 TableName="FileInfos">
\r
159 </asp:LinqDataSource>
\r