p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   autocomplete textbox like google (http://p2p.wrox.com/showthread.php?t=54629)

nilsan February 27th, 2007 05:31 AM

autocomplete textbox like google
 
Hello all,

It's urgent...

i want to add autocomplete textbox facility in my application like google. as you type it suggests option to the user..i want the same kind of facility...i know i can do only with ajax(xml and javascript) but i want to fetch possible values from database and want to show as the user types in text box.

i've searched on the net and i found some articles but i don't want to use any dll file they provide but i want to use simple code and javascript...if anyone has any idea then please provide me code snippet or provide some link that do not contains the component like .dll file and only simple code..
the help will be appreciated...

Thanks & Regards,
Nil


dparsons February 27th, 2007 07:36 AM

Using ajax, all you need to do is is create an XML object and submit the text of the javascript box to an aspx page, that will take the values of the text box (appended to a query string) and have it query the database and write it back to the ajax page.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429


All times are GMT -4. The time now is 07:04 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.