| Author |
|
| Company |
Building31 |
| Source Code Available |
No |
| License Type |
Free |
| Submitted On |
September 20, 2004 |
| Updated on |
July 25, 2007 |
| .NET Framework |
1.x |
| Cost |
$ 0 |
Description
Building31.Search is a solution for adding search to your ASP.NET Web site. It lets visitors locate information instantly. It indexes dynamic ASP.NET sites including pages with query-strings (commonly used to load database-driven content).
You don't need to install applications or databases on the server. Just copy the DLL and .aspx file to your ASP.NET site and it runs automatically.
Syntax Example
<%@ Register Tagprefix="Search"
Namespace="Building31.Search.Interface"
assembly="Building31.Search" %>
<%@ Import namespace="Building31.Search.Interface" %>
<input type="text" id="SearchTerm" runat="server" size="15">
<select id="SearchType" runat="server">
<option value="exact">Exact Phrase</option>
<option value="all">All words</option>
<option value="any">Any words</option>
</select>
<Search:Settings runat="server"
ResultsControl ="ResultsDataGrid"
SearchTermControl ="SearchTerm"
SearchTypeControl ="SearchType"
GenerateSmartSummary="true"
GenerateRanking="true"
HighlightFoundTermPrefix="<span style='background-color:#FFCC33'>"
HighlightFoundTermProfix="</span>"
/>
<ASP:DataGrid
id="ResultsDataGrid" Runat="Server"
PagerStyle-Mode="NextPrev"
PagerStyle-HorizontalAlign="Right"
PagerStyle-NextPageText="Next"
PagerStyle- PrevPageText="Prev"
PageSize="10"
CellPadding = 0
BorderWidth = 0
CellSpacing = 0
ShowHeader = false
AllowPaging = true
AutoGenerateColumns = false
>
<Columns>
<ASP:TemplateColumn>
<ItemTemplate>
<a href="<%# Search.Render(Container,"PageUrl") %">
<b>
<%# Search.Render(Container,"PageTitle") %></b></a>
<%# Search.Render(Container,"Relevance") %>%<br>
<%# Search.Render(Container,"Summary") %><br>
<a href="<%# Search.Render(Container,"PageUrl") %>">
<%# Search.Render(Container,"PageUrl") %></a>
Size: <%# Search.Render(Container,&Screenshots
Reviews
Submit a review