如何在asp.net自动完成文本框中使用分号分隔文本框中的多个值
我有一个带有自动完成扩展器的文本框,它工作正常。如何通过用分号 (;) 分隔第一个值来允许用户输入多个值
<asp:TextBox ID="txt_to" runat="server" />
<asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txt_to"
MinimumPrefixLength="2" CompletionInterval="10" EnableCaching="true" FirstRowSelected="true" CompletionSetCount="3" UseContextKey="True" ServiceMethod="GetCompletionList" />
I have a text box with auto complete extender and it works fine. How can I allow the user to enter more than 1 value by separting the first value with a semicolon(;)
<asp:TextBox ID="txt_to" runat="server" />
<asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txt_to"
MinimumPrefixLength="2" CompletionInterval="10" EnableCaching="true" FirstRowSelected="true" CompletionSetCount="3" UseContextKey="True" ServiceMethod="GetCompletionList" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如演示页面此处中所述,您应该使用
DelimiterCharacters
属性:As explained in the demo page here, you should use the
DelimiterCharacters
property: