Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Implementing Search as we type on a Textbox in .Net (For Address search)

Posted on 2016-08-24
6
Medium Priority
?
122 Views
Last Modified: 2016-09-30
I am using .Net and want to implement a textbox that searches addresses and displays suggestions on a textbox.

The  user should be able to select a relevant address from the suggestions displayed and then use this address for some query further.

We have a table called "ADDRESSES" in the back end on SQL Server (We have 2008-R2 and 2016 available for use)
I think there can be caching or database based method..........

What is the best way to do this?
0
Comment
Question by:Arikkan
  • 4
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 2000 total points
ID: 41770065
1
 

Author Comment

by:Arikkan
ID: 41770559
Thanks Ram. I found the documentation for the extender at this site as well:
http://www.ajaxcontroltoolkit.com/AutoComplete/AutoComplete.aspx
0
 

Author Comment

by:Arikkan
ID: 41778672
Is there any other way to implement this ?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 12

Assisted Solution

by:Ramkisan Jagtap
Ramkisan Jagtap earned 2000 total points
ID: 41779286
Hello SHANCHAT972,

Other way could be using JQuery  and a webservice to get the values from the database.
Please refer the following URL:
http://www.aspsnippets.com/Articles/Populate-jQuery-AutoComplete-TextBox-from-Database-using-Web-Service-in-ASPNet.aspx
1
 

Author Closing Comment

by:Arikkan
ID: 41781975
0
 

Author Comment

by:Arikkan
ID: 41824127
This is a good resource to return and select the ID of the selected information in the Textbox.

http://stackoverflow.com/questions/17349875/ajax-autocomplete-extender-and-get-id-of-selected-item
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question