开发者

ASP.NET TextBox with Suggestions

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 s开发者_StackOverflow社区elected values has to be appear in text box like, John, John David, John Edward.

Any ideas?


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


Try jQuery UI Autocomplete

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜