How do I bind a SQL Server stored procedure to a JQuery autocomplete on an ASP.Net Textbox control?

How do I bind a SQL Server stored procedure to a JQuery autocomplete on an ASP.Net C# Textbox control?

I got it to a point where my sample works with an array of data in the script file.  I have my input field on my .aspx page:

Player name: <input id="autocomplete" />

Open in new window

(I realize it is not binding to a .net textbox control, but I just want to get this working first, then I'll move on to making it work with a textbox control)

I'm including the following at the top of the page:

<link href="" rel="stylesheet" type="text/css"/>
<script src=""></script>
<script src=""></script>
<script type="text/javascript" src="Scripts/jquery-custom.js"></script>

Open in new window

In my jquery-custom.js file, I have the following:

$(document).ready(function () {
        source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]

Open in new window

The above works.  What I'd like to do is instead of the source pulling from a string array ("c++", "java", etc), the source pull data from a stored procedure.  I've been looking online for hours now and just can't quite find what I'm looking for.

Any help is greatly appreciated.

Who is Participating?
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.

you have samples in the jquery ui site
motleycoderAuthor Commented:
I'm not seeing anything that directly ties to a stored procedure though.  Is it not possible?  All of the samples I'm reading about is for a web service or hard coded data in a page like above.
web browser can't call directly your database (html5 has some kind of storage but it won't work only in latest browsers)
so you must have some kind of web service/handler/web page that will return the data you need in the browser.

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
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

From novice to tech pro — start learning today.