<style type="text/css">
/*AutoComplete flyout */
.autocomplete_completionListElement {
visibility: hidden;
margin: 0px !important;
background-color: inherit;
color: windowtext;
border: buttonshadow;
border-width: 1px;
border-style: solid;
cursor: pointer;
overflow: auto;
text-align: left;
list-style-type: none;
font-family: Verdana;
font-size: 13px;
padding: 0;
}
/* AutoComplete item */
.autocomplete_listItem {
background-color: white;
padding: 1px;
}
/* AutoComplete highlighted item */
.autocomplete_highlightedListItem {
background-color: #e9f5f7;
padding: 1px;
}
</style>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:TextBox ID="txtSearch" runat="server" οnkeydοwn="SetContextKey();"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender ID="autoComplete" runat="server" TargetControlID="txtSearch"
ServicePath="~/AjaxService/webservice.asmx"
ServiceMethod="GetAutoCompleteExtenderData"
MinimumPrefixLength="1"
CompletionInterval="200"
CompletionSetCount="10"
FirstRowSelected="true"
EnableCaching="false"
UseContextKey="true"
OnClientItemSelected="ajaxCompleteCallBack"
CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem">
</ajaxToolkit:AutoCompleteExtender>
<div id="AjaxCompleteSelectedValue"></div>