Home >> The some of the Parts >> AJAX .NET Example - Search as you Type
AJAX .NET Example - Search As You Type
A common feature of many Websites these days is "type as you search" functionality. As you type, previous matching data is returned and displayed below the search box. These is done through AJAX and our example uses the latest AJAX .NET tool kit release to easily accomplish this with just a few lines of code.

Pretend the search form below is on a customer management section on the back-end of your Website. As you type to search for last names, possible matches will appear below the text box. Start out by just entering one letter. "C" is a good one.
 
Search for Customer Last Name:
 
Some notes:
You may notice that the search above is not extremely fast. It is not slow but certainly not as fast as some of the others you may have seen in the real world. This is because it runs directly off our SQL Server database and, with each key stroke, we must hit the database. This will cause a delay. It may be an acceptible delay in a private, restricted area of your Website but that delay may not be desireable for normal searches found on the front-end (publicly accessible) side of your Website.

In addition, our example database of names is very small. As the database gets bigger, this will slow down more.

The way to make a type as you search feature faster is to save the popular, successful searches that your Website users generate in to an XML file. Running a feature like this off XML will be much faster. Using XML, the characters that a Website visitor enters are matched to previous, successful searches as opposed to looking directly in the database. Much faster.


These examples are just pieces of the pie. We know how to put all the pieces together.
Contact TConsult today for reliable Web development and highly personalized service.
Call: (585) 367-9074 | Email Us

Recent News
12/11/09 TConsult, Inc. signs development contract with Enhance America (www.enhancemaerica.com) for development of data driven Business to Business portal.

12/09/09 TConsult, Inc. completes development of Jaco Aerospace (e-aircraftsupply.com)

12/05/09 TConsult, Inc. begins re-design and development of Electronic Data Solutions store (store.elecdata.com)

11/25/09 TConsult, Inc. completes development of portal B2B Web store for store (goldencountry.com)