在ASP组合框中过滤 [英] Filtering in asp combobox

查看:51
本文介绍了在ASP组合框中过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当用户从数字的第一个字母输入时,我想过滤组合框中的数据.

等待您的帮助.

问候

Haluk

Hello guys,

I would like to filter the data in combobox when the user enter from the first letter of number.

Awaiting your help.

Regards

Haluk

推荐答案

嗨Haluk_78,

试试这个,
Hi Haluk_78,

try this,
<asp:combobox id="ddlEmpName" cssclass="selectEmp" height="20px" width="180px" runat="server" dropdownstyle="DropDownList" autocompletemode="SuggestAppend" casesensitive="false" iteminsertlocation="Append" xmlns:asp="#unknown">
</asp:combobox>



在尝试上面的代码之前,您将需要添加对"AJAXControlToolkit.dll"的引用.完成引用后,请在页面的头部添加引用:



before trying the code above you will be required to add reference to "AJAXControlToolkit.dll". As soon you''re done referencing, add reference to in your page in head section:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>



手动或动态将列表项添加到组合框.

希望这能达到目的.

快乐编码:)
Sunny_K



Add list items to combo box either manually or dynamically.

Hope this serves the purpose.

Happy Coding :)
Sunny_K


看这篇文章:

针对ASP.NET的客户端过滤的下拉列表 [ ^ ].

否则,您可能也对AJAX Auto Complete感兴趣:

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx [ ^ ]
Look at this article:

A client side filtered dropdown for ASP.NET[^].

Else, you may also be interested in AJAX Auto Complete:

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx[^]


请参考:
过滤和搜索ASP.Net DropDownList 项目 [ ^ ]
使用简单的JavaScript搜索和筛选ASP.Net DropDownList控件的项目.

类似的讨论:
DropDownList自动过滤器 [
Please refer:
Filter and Search ASP.Net DropDownList items[^]
Search and Filter the items of ASP.Net DropDownList control using simple JavaScript.

Similar discussion:
DropDownList auto filter[^]


这篇关于在ASP组合框中过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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