Solved auto complete with jquery

Posted on 2014-09-25
Last Modified: 2014-10-02
I try to build auto complete jquery based on the below codes.
Can you tell me what I need to do?
I am new to jquery thanks

public static string[] GetBrand(string prefixText, int count)
            List<string> productList = GetProductListByKeyword(prefixText, count);
            var list = from p in productList
                       where p.Contains(prefixText)
                       select p;
            string[] prefixTextArray = list.ToArray<string>();
            return prefixTextArray;
        public static List<string> GetProductListByKeyword(string prefixText, int count)
                    List<string> brandNames = new List<string>();                   
                    return brandNames;                
            catch (Exception ex)
                throw new ApplicationException("Something wrong in the query/database connection: ", ex);

<asp:TextBox runat="server" ID="keyword"></asp:TextBox>

Open in new window

Question by:ITsolutionWizard
  • 2
  • 2
LVL 82

Expert Comment

ID: 40344736
Click here :
And on "View Source link"

Author Comment

ID: 40344759
No. that is not .net page and you have to show me the codes here.
LVL 82

Accepted Solution

leakim971 earned 500 total points
ID: 40344763
are you able to test you current service? what did it return ?

Author Comment

ID: 40344968
it is not a service and it is working

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do specify keydowns in JavaScript 3 46
Question about JQuery and 3 27
How do I pull the base url for use in html links 7 23
JS does not refresh 6 21
This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 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