Link to home
Start Free TrialLog in
Avatar of goodk
goodkFlag for United States of America

asked on

trying to use ajax in asp.net but this simple example is not working.

I saw this example and i tried it but is not very working.
http://www.aspdotnet-suresh.com/2012/03/jquery-ui-autocomplete-textbox-with.html

select DISTINCT Name from PersonInfo where Name LIKE '%a%'  - I tested the query, it works fine but the autocomplete example is not working.
Autocomplete.aspx
Autocomplete.aspx.cs
SOLUTION
Avatar of Alexandre Simões
Alexandre Simões
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of goodk

ASKER

Alexcode, you think my code is correct?  I do not know what is a firebug? I am using asp.net
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of goodk

ASKER

url: "Default.aspx/GetAutoCompleteData",

What is this suppose to be?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of goodk

ASKER

I am confuse because my file name is autocomplete.aspx.  Am I suppose to create some more files?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of goodk

ASKER

I get response "error".  Not sure what is wrong.  I am attaching the two files again.  Please see if you see something I am overlooking.

This is my first try at this so not very confident.
Autocomplete.aspx
Autocomplete.aspx.cs
Avatar of goodk

ASKER

Please give all the points to AlexCode - thanks
Avatar of goodk

ASKER

Thank you I got it to work.  I had a problem in the connection to the DB