0

雅虎邮件中有一个神奇的收件人地址字段,您可以在其中输入名称并显示自动完成列表,单击名称然后字段中会出现一个块,每个块都有一个小x标记您可以从该字段中删除名称,并将所有剩余的块向左移动以填充它的位置!

如何在我的应用程序中以最小的努力在 asp.net 上实现地址字段的这种行为?

加:我主要寻找一个最好是免费使用的.net组件,商业的很受欢迎。

4

1 回答 1

0

Rather than a .NET component, take a look at some client side plugins. TagIt, for JQuery, is a good one for doing just what you are talking about doing. Here is a demo: http://webspirited.com/tagit/

You can also wire up a web service and retrieve values from the server based on the input the user has entered (auto complete functionality). It's definitely one close to what you are referring to.

于 2012-07-27T16:00:48.833 回答