如果在自动完成列表中找不到,则扩展“自动完成文本框”字段的功能以建议创建新记录 [英] Extend the functionality of Auto Complete Textbox field to suggest to create new record if not found in auto complete list
问题描述
我已成功创建了一个文本框来执行自动完成功能。此文本框名为Customer,它与数据库中的customers表绑定。在联系号码的基础上,我正在提交自动填充列表。现在问题
是我想要求用户创建新的客户记录,如果他们没有在自动完成列表中找到。
示例:如果用户搜索对于12345788,现在结果显示在自动完成列表中,那么必须建议他们根据该数字创建新用户。
对此有任何帮助/建议都非常受欢迎。
您好,
以下说明如何删除或更新自动完成列表中的项目。从那以后你应该能够计算出add方法。
https://code.msdn.microsoft.com/Populate-save-remove-items-be87b5c7?redir=0
I've successfully created a text box to perform a auto-complete functionality. This textbox is named as Customer and it is bind with the customers table in database. On the base of the contact number I am filing up the autocomplete list. Now the problem is I want to ask user to create new Customer record if they don't found in the auto-complete list.
Example: if the user searches for 12345788 and now result shown in the autocomplete list, then they must be suggested to create new user based on that number.
Any help/suggestion on this is warmly wellcome.
Hello,
The following shows how to delete or update a item located in a auto complete list. From that you should be able to work out the add method.
https://code.msdn.microsoft.com/Populate-save-remove-items-be87b5c7?redir=0
这篇关于如果在自动完成列表中找不到,则扩展“自动完成文本框”字段的功能以建议创建新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!