Posts

Showing posts with the label indexing service

Searching Indexing Service (ASP.NET C#)

Windows has an Indexing Service that can be used to index files on the server it is hosted on. Here is a simple way to query any catalogues (in this example, one called Data ) you create and display the results in a repeater. First of all, create a new page (in Visual Studio or Web Developer 2005), e.g. search.aspx . Create the search box and repeater within a form runat="server" : <form id="form1" runat="server"> <div> <asp:TextBox runat="server" ID="Search" /> <asp:Button runat="server" Text="Search" OnClick="SearchDocuments" /> <asp:Repeater ID="ResultsRepeater" runat="server"> <HeaderTemplate> <table> <thead> <tr> <th> Filename </th> <th> Size </th> <th> Title </th> <th> Path </th> ...