This project is read-only.

AutoComplete Guidance Bundle

As a user enters information in a text box on a Web page, a Web page can use AutoComplete behavior to display a list of suggested values, and a user can choose from this list instead of typing the complete term. Figure 1 illustrates the MSDN search text box displaying a list of suggested search terms that begin with the characters typed by the user.
Figure 1
Using AutoComplete behavior to suggest search terms

Browsers, such as Microsoft Internet Explorer, can keep track of information that you have recently typed, such as Web site addresses, information in forms, and search queries, and then it uses these values in the list of suggestions. In this case, the Web application requires no changes (the browser provides the behavior); the list of suggested values is limited to values previously entered, and this list is maintained on the client computer.
In many scenarios, the list of suggestions is best produced by logic that runs on the server. Consider the example illustrated in Figure 1. The list of suggested terms could be the list of all search terms indexed on the server, or it could be a smaller list of only the frequently searched terms. In each case, the server would contain the logic to produce the list of suggestions.
Typically, the logic on the server uses pattern matching with the characters entered by the user. This means the list of suggestions begin with the same set of characters. Any data that the user has entered into other controls on the Web page does not influence the list of suggestions.
The purpose of this guidance bundle is to provide guidance on how to provide a richer AutoComplete behavior that allows you to incorporate the state of different controls on the Web page as your server logic creates the list of suggestions.

What Is a Bundle?

A bundle is a small package of guidance that is focused around one technical concept. The primary purpose of a bundle is to allow users to quickly, conveniently, and easily learn and evaluate a concept. 
Although a bundle can contain any type of guidance, a bundle typically includes the following elements:
  • Source code: QuickStarts and related artifacts
  • Binaries: Application block binaries required by the QuickStarts
  • Written documentation: QuickStarts description and How-To topics

What Is in This Bundle?

The AutoComplete Guidance Bundle contains the following elements:

Last edited Nov 7, 2007 at 12:25 PM by ejadib, version 2


No comments yet.