Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to show a list onto text box when i press a key that store our database.
You see when any gmail,facebook login text box we press a character in this box then show a list of login id that result i want to my code.
Please help me.

Thanks in Advance.
Posted
Updated 12-Jul-11 19:20pm
v3
Comments
Abhinav S 13-Jul-11 1:03am    
Have you tried anything so far?
Christian Graus 13-Jul-11 1:26am    
He's tried asking the same thing several times, yes.

Well,what you see in Gmail or FaceBook login textbox is something different that your requirement. Those are the "AutoComplete" behavior of textbox.
I think you are looking for auto populate data from DB on key press. For that, you can look for AJAX library as CG suggested or using simple XMLHttpRequest .
Here is few sample that might help you
Creating Auto-Suggest Textbox Using ASP.NET 2.0 Client Callbacks[^]
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx[^]
 
Share this answer
 
What you're looking for, is AJAX. The ASP.NET AJAX library has controls that do what you want.
 
Share this answer
 
AJAX

Ajax[^]and it can be downloaded from here[^]might help you.
 
Share this answer
 
v2
What a strange way of showing a list? There is a ListBox control for this purpose, see http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listbox.aspx[^].

—SA
 
Share this answer
 
Comments
Christian Graus 13-Jul-11 3:24am    
He means an autocomplete list

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900