数据按顺序设置的下拉列表的C#代码. [英] c# code for dropdown list whose data are set in order..

查看:70
本文介绍了数据按顺序设置的下拉列表的C#代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个针对城市的下拉列表
在该下拉列表中,我添加了以下功能:-
巴默
斋浦尔
焦特布尔
Bikaner

当我在下拉列表中写入B时,其名称以B开头的城市就位于下拉列表的顶部,例如:-
巴默
Bikaner
斋浦尔
焦特布尔

因此,请提供下拉列表代码

i have a dropdownlist for feild city
in that dropdownlist following features are i added :-
Barmer
Jaipur
Jodhpur
Bikaner

when i write B in dropdownlist then the cities whose names are start with B are come top of the dropdownlist like:-
Barmer
Bikaner
Jaipur
Jodhpur

so please give the dropdownlist code

推荐答案

给出下拉列表代码
再次重复...
它在这里不能这样工作.

这是询问者的期望:
1. 先尝试您要做什么!您可能会发现它并不难.
2.制定看起来像问题/无法解决的问题.

尝试一下,告诉您是否遇到问题.


从这里开始:
处理它的多种方法:-
1.在查询本身中处理此问题
2.在服务器代码中处理此问题
3.使用客户端代码进行处理

对于1,请参考: http://www.stellarpc.com/articles/board.aspx?id=22 [^ ]
对于2& 3,请参考:使用Ajax AutoCompleteExtender进行自动提示 [ Google Like搜索文本框 [
give the dropdownlist code
Repeating again...
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.


Start from here:
Multiple ways to handle it :-
1. Handle this in query itself
2. Handle this in server code
3. Handle this in client code

For 1, refer: http://www.stellarpc.com/articles/board.aspx?id=22[^]
For 2 & 3, refer: Using Ajax AutoCompleteExtender for autosuggest[^]
Google Like Search TextBox[^]


Try!


这篇关于数据按顺序设置的下拉列表的C#代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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