I am looking for a simple but effective way to create a drop down search box which should work like the google search and is populated by values from a database which acts when I type anything in the textbox. I Should be able to select any of the values. I am looking for the simplest solution and do not want to use a web service or the ajax control toolkit like every example I have seen does. Any help would be greatly appreciated..
Google like dropdown search populated from database in Asp.Net
1.6k Views Asked by Freddy At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ASP.NET
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in SEARCH
- SQL weight rows by formula
- If Input is focused trigger X else trigger Y
- laravel full-text search with multiple keywords together
- Login form by using a new database, made in VB
- How to search for overloaded methods in a class
- Modifying Tries code in Java
- Doing a multi-column search for an item in a listView control using c#
- T SQL wildcard searching for a zip code
- django rest framework search filter all fields
- how to filter search result with dropdown list in php
- PHP/MySQL search... show all data by default, or show matched data
- Oracle multiple REPLACE options in REGEXP_REPLACE
- Is there a way to get all complete sentences that a search engine (e.g. Google) has indexed that contain two search terms?
- How to search a unknown composite key for dictionary in O(1) in c#
- android java search listview clickedItem
Related Questions in TEXTBOX
- All my JavaFX TextFields have lines in them
- Troubleshooting code for macro and textbox
- WPF text control with colors only
- WPF how to manage ENTER hit on TextBox for messaging purpose
- Split comma separated strings 5
- How to fetch data from text field without using any buttons?
- How can I create a WPF TextBox that conditionally converts user input?
- Implementing Autocomplete textbox in ASP.NET
- Output Command Line (.Bat FILE) show in textbox with c#
- Disable a MenuItem when TextBox of UserControl is empty
- PreviewlostkeyboardFocus event fires twice when I click on combobox WPF
- Turning Textbox Red with a timer when serial port stops outputting data
- How can I sum value in 8 textboxes to the a single textbox?
- How can i restrict user from entering the numeric and special characters in textbox?
- Can I run a Sub based on whether another Sub has run?
Related Questions in DROPDOWNBOX
- onchange dropdownbox in html and php?
- PHP populate html select with array from function
- How to select option in select list?
- Google like dropdown search populated from database in Asp.Net
- Adding values dynamically to a MultiSelect in DOJO
- C++ Forms - Stacking trackbars causes weird visual effects and crash
- Binding DropDown to Dictionary with default SelectedIndex
- best way to dynamically populate dropdown options in jqgrid advanced searching
- Send DropDown Field from HTML page via PHP to Email
- the selected value was cleared in dropdown after add new criteria in jqgrid advanced searching
- Pass php drop down value to another php site
- How can you show different dropdowns for different checkboxes & then different dropdown when multiple checkboxes are checked?
- how to do different things with each droplist chioce? HTML
- Create dropdown list from another table into my update/delete/add table
- to display data in dropdown depends on other dropdown data
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You're looking for something like JQuery's Autocomplete, found here: https://jqueryui.com/autocomplete/
If you don't want to use an AJAX query to do the search, you can include all data in your HTML if you want. I wouldn't advise it though, as that information is also publicly visible for your visitors if they take a look at your source. If that's not a problem, then by all means, take this route.
If you do want to load the data via AJAX, the Autocomplete I linked to can also work against a remote datasource. The documentation for that is here: https://jqueryui.com/autocomplete/#remote
Example without using a remote datasource (no ajax):
In this example you would have to think of a way to print all of your tags into the HTML above, because you obviously cannot hardcode this. How to do this, depends on the technology you're running on. (MVC, WebForms, ...). But you would generally just get all the tags from the database, and print them out into the javascript. Post back if you need an example of this and tell me your technology, and I'll update my answer.
example of remote datasource (with ajax):
You'll find more complete examples on their website. The URL that you'll have to use for such an ajax query depends on what technology your website is written in. Do you have access to a WEB API project? Or is it an MVC website? Or a Webforms website?