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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.