根据用户输入在组合框中显示列表。 [英] display list in combo box as per user inputs.

查看:90
本文介绍了根据用户输入在组合框中显示列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用组合框来显示供应商名称。在用户在组合框中键入S时,搜索工具中应显示名称以S开头的整个供应商列表,如国家,任何基于Web的应用程序中的状态搜索工具。每个用户输入列表的方式应该相同。

任何人都可以知道这个

解决方案

背后的逻辑你需要使用自动填充 ajax扩展程序。请查看本文的说明和示例: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete /AutoComplete.aspx [ ^ ]


嘿尝试使用autocomplete extender而不是Conbobox ..

参考下面的链接。

自动完成扩展程序 [ ^ ]

ASP.Net Ajax AutoCompleteExtender,不使用Web服务 [ ^ ]


此功能称为自动完成

首先你需要这个js文件:

 jquery-ui-1.8.20.custom.min.js 



和css文件:

 jquery-ui-1.8.20.custom.css 





1.将这些文件的链接放在您要使用自动完成的页面上,如下所示:

 <   script     src   =  Scripts / jquery-ui-1.8.20.custom.min.js    type   =  text / javascript >  <   /   script  >  
< link href = 样式/ jquery-ui-1.8.20.custom.css rel = < span class =code-keyword> stylesheet type = text / css / >





2.然后使用这个脚本:

< script type =  文本/ Java类CRIPT> 

I am using combo box to show supplier name. In search facility when user type "S" in combo box the entire supplier’s list should be display whose name start form "S", like country, state search facility in any web based application. Same way as per user inputs list should be change.
Can any one know logic behind this

解决方案

You need to use autocomplete ajax extender. Look at this article for description and sample: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx[^]


hey try to use autocomplete extender instead of Conbobox..
Refer Below Link.
AutoComplete extender[^]
ASP.Net Ajax AutoCompleteExtender Without Using Web Service[^]


This funcionality is called auto-complete
first of all you will need this js file:

jquery-ui-1.8.20.custom.min.js


and css file:

jquery-ui-1.8.20.custom.css



1.place link of these files on page where you want to use auto-complete just like this:

<script src="Scripts/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
   <link href="Styles/jquery-ui-1.8.20.custom.css" rel="stylesheet" type="text/css" />



2.then use this script:

    <script type="text/javascript">


这篇关于根据用户输入在组合框中显示列表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆