With the widespread use of AJAX in web programming, many online search applications now provide auto complete search boxes. The retrieval of the matching search keywords is done by posting AJAX calls to server side code that links to a backend database.
In this recipe, we will use the auto complete widget provided by jQuery UI to demonstrate an auto complete search box. We will post the AJAX request to an ASP.NET HTTP handler for the retrieval of the matching search keywords.
SearchKeys.ashxto the project.
using System.Collections.Generic; using System.Web.Script.Serialization;
IHttpHandlerand contains ...