Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CandyStoreFullTextSearch.aspx.cs" Inherits="dbDemo2017.CandyStoreFullTextSearch" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <div id="searchBox">
- <h5>Enter a phrase within quotation marks.</h5>
- <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
- <asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
- <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
- <br />
- <br />
- <asp:CheckBox ID="chkSearchType" runat="server" Text="All Words"/>
- </div>
- <asp:Repeater ID="rptSearchResults" runat="server">
- <HeaderTemplate>
- <h1>Search Results</h1>
- </HeaderTemplate>
- <ItemTemplate>
- <p>
- <%#Eval("name") %><br />
- <%#Eval("briefDescription") %><br />
- <%#Eval("fullDescription") %><br />
- <img src='<%#Eval("product_image") %>'
- alt='<%#Eval("name") %>' />
- <%#Eval("price", "{0:c }") %>
- </p>
- </ItemTemplate>
- <SeparatorTemplate>
- <hr />
- </SeparatorTemplate>
- </asp:Repeater>
- </div>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement