Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,


On Entering a part of string for search, all the possible values for the entire sting should be listed.

In Case of searching from DB:
I think it can be done by fetching records from DB and store in Array of Javascript; But after that, on text change of Text Box how can the list be dynamically changed as per new text?


For Eg: of my Requirement Please goto www.google.com and type any alphbet.


Thanking you mean while,
Malware.
Posted
Comments
hansoctantan 19-Jul-13 5:41am    
try using ajax/json for fetching data from database and jquery autocomplete

1 solution

Use the AutoCompleteExtender Ajax control by mapping to your relevant text box

using webservice method as listed below e.g


XML
<asp:TextBox ID="txtCustomerName" runat="server" class="txtboxtxt"
                                                               onblur="FocusChValue();" onfocus="DoFocus(this);" TabIndex="0" Width="282px"></asp:TextBox>
                                                           <cc2:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server"
                                                               CompletionInterval="500" CompletionSetCount="12" EnableCaching="true"
                                                               Enabled="True" MinimumPrefixLength="1" OnClientItemSelected="fillCustomerCode"
                                                               ServiceMethod="GetCustomerNameCompList" ServicePath="wsSales.asmx"
                                                               TargetControlID="txtCustomerName">
                                                           </cc2:AutoCompleteExtender>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900