views:

99

answers:

2

here is the scenario, I have text box, if I type few characters in text box, a popup should open which should have list of values matches my text box entry from DB with check box. after selection of the values from popup, the selected values has to be in text box with delimiters.

type Joh in text box, the popup should have all the Names starts with Joh with check box after selecting John, John David, John Edward from popup, the selected values has to be appear in text box like, John, John David, John Edward.

can I have the code for this in c#

+3  A: 

Try jQuery UI Autocomplete

Floyd Pink
+1 because JQuery works as well.
David Stratton
+9  A: 

You didn't specify if this is in a web page (ASP.NET using c#) or a Windows form.

For ASP.NET I like the Ajax Control Toolkit, and it has an AutoComplete control that you could use to do this. http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx

If you want it for a Windows Forms app, see here: http://csharpdotnetfreak.blogspot.com/2009/01/winforms-autocomplete-textbox-using-c.html

David Stratton
Good Answer, even though the question is questionable, the answer is polite and correct... like that.
BeowulfOF