Add EasySearch to your site in less than 5 minutes!!! Read the Easy 2 step process in these simple instructions.

No Coding Required!

In 2 simple steps (unzip and configure) you can have a search engine running on your ASP.NET web site.



Add an advanced search engine to your ASP.NET Site in less than 5 minutes.


 

 

 

 

 

 

Knowledge Base - EasySearch for ASP.NET

Easy Search Documentation > EasySearch Files Defined EasySearch Help
Search the Knowledge Base
 
Start Search in the Following Category
Date Modified
Thursday, February 24, 2005
INFO :: EasySearch\SearchControl.ascx

Following is the syntax of EasySearch\SearchControl.ascx. Notice that there are three input controls. The Textbox for search input, an ImageButton, and a LinkButton. Either of the Button controls can be removed, but one of them need to stay in tact, in order for the search to get submitted back to the server.

This SearchControl is responsible for two actions. First -- Redirect the user to the appropriate search results page, and second, show the live hints.

The one thing to remember about this user control is that the controls to decide to use, the ID="" values have to remain unchanged. This is so the EasySearchModule knows what controls you've decided to use. If you change the ID="" values, it's the same as removing the controls, and EasySearchModule will not work the renamed controls.

1:     <%@ Control Language="c#" AutoEventWireup="false" Inherits="EasySearchModule.SearchControl" %>

2: <asp:Label
3: ID="EasySearchMessageLabel"
4: Runat="server" />
5: <asp:TextBox
6: ID="EasySearchTextBox"
7: Width="150px"
8: Visible="True"
9: autocomplete="off"
10: runat="server" />
11: <asp:ImageButton
12: ID="EasySearchImageLinkButton"
13: Visible="True"
14: ImageUrl="GoSearch.gif"
15: Runat="server" />
16: <asp:LinkButton
17: ID="EasySearchLinkButton"
18: Visible="True"
19: runat="server">Go</asp:LinkButton>
20: <br>
21: <div id="results"></div>
22:


Help us build our knowledge base
Click here to Submit a Question
Knowledge Base Software - myKB.com