<asp:TextBox ID="txtHotelName" runat="server"
AutoCompleteType="Disabled" AutoPostBack="True"></asp:TextBox>
<cc1:AutoCompleteExtender
ID="TextBox1_AutoCompleteExtender" runat="server"
Enabled="True"
TargetControlID="txtHotelName" FirstRowSelected="True"
CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
ServiceMethod="GetCompletionList" ServicePath="" UseContextKey="True"
DelimiterCharacters="">
</cc1:AutoCompleteExtender>
in code behind
<System.Web.Services.WebMethod(), System.Web.Script.Services.ScriptMethod()>
Public Shared Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()
.........write your queries here and return ......................
End Function
Sksamantaray, if this helps please login to Mark As Answer. | Alert Moderator