SQL / website search bar (reference google.com)

Hi EE,

I am trying to make a searchbar on a website, I am trying to create. I can create entries in the DB, connect to it and receive output. However, I want to have a dynamic search bar meaning I want the following:

1. Update the search when I type the next character (first 5-10 entries based on "table-name" or something similar
2. When I click the result, or move the mouse ontop of it, I want to be able to choose the result and displaying it in gridview or something based on which tables I choose in the db.

I am using the following and only that;

Visual Studio 2017
Microsoft SQL
Basic C#
JS

You could possibly do it some other way, but I am using the tools listed above and I hope the answer will reflect that or at least most of them. As a reference, I am trying to mimic the search feature google uses on its search page.

I hope it makes sense. Been trying  to google it, as well as find youtube videos but I am missing the correct "syntax".

Thank you in advance

Thanks Sarah
Sarah S.Network TraineeAsked:
Who is Participating?
 
Tapan PattanaikSenior EngineerCommented:
Hi Sarah,

I am not sure, what exactly you are looking for.

Are you looking for Ajax control toolkit AutoComplete  ?

AutoComplete is an ASP.NET AJAX extender that can be attached to any TextBox control, and will associate that control with a popup panel to display words that begin with the prefix typed into the textbox.

Here is the example : (are you try to implement similar type of functionality in your project):

https://www.aspsnippets.com/Articles/AJAX-AutoCompleteExtender-Example-in-ASPNet.aspx

https://www.aspsnippets.com/Articles/Ajax-Control-ToolKit-ComboBox-Extender-Tutorial-with-example-in-ASPNet.aspx

http://www.ajaxcontroltoolkit.net/AutoComplete/AutoComplete.aspx
0
 
Sarah S.Network TraineeAuthor Commented:
Hello Tapan,


AutoComplete is an ASP.NET AJAX extender that can be attached to any TextBox control, and will associate that control with a popup panel to display words that begin with the prefix typed into the textbox.
That is exactly what I am looking for. Couldn't quite figure out the correct way to phrase my question but you figured it out beautifully.

Thank you for your help :)
Sarah
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.