How to Search using jQuery ASP.Net?

Using jQuery UI widget Autocomplete, how do I implement instant search in ASP.NET MVC 3 app?

  • I have a page in my ASP.NET MVC 3 app that contains a table displaying database content and a form, that lets you input a search query for filtering the displayed database content. The input to the form is handled by a jQuery UI Autocomplete widget. I have autocomplete support working in the Autocomplete widget, so that a dropdown menu with suggested search terms appears as I type in it. However, I would also like for the table (of database content) to be automatically filtered as I enter the search string. How do I go about this? Please keep in mind when answering that the solution has to fit the ASP.NET MVC 3 framework (and that I'm new to web development).

  • Answer:

    You should look into http://datatables.net/. It does accept filtering and is Jquery compatible. If you don't want to use their built in Filter field UI, you can hide that field and call the http://datatables.net/api javascript method.

aknuds1 at Stack Overflow Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.