Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

how to create simply search engine?

$
0
0

How can I create my own simply search engine??

In Site.Master I have search form:

<asp:TextBox ID="Phrase" runat="server"></asp:TextBox><asp:LinkButton ID="LinkButton1" runat="server" CssClass="search-submit" OnClick="LinkButton1_Click"></asp:LinkButton>




In database I have table with name Notes and columns: NoteId and Title.
I have file List.aspx with ListView with all my notes:

<asp:ListView ID="ListView1" runat="server" DataKeyNames="NoteId" DataSourceID="EntityDataSource1"><ItemTemplate><span style="">NoteId:<asp:Label ID="NoteIdLabel" runat="server" Text='<%# Eval("NoteId") %>' /><br />
                Title:<asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' /><br />           </span></ItemTemplate>
            ..........</asp:ListView>




After write some text and click link in search form user should be redirect to page List.aspx and he should see on ListView only items where in column Title in table Notes is some text. How can I do that??


Viewing all articles
Browse latest Browse all 23244

Trending Articles