编程帮助 [英] programming help

查看:416
本文介绍了编程帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用c#2005作为前端,使用sql2005作为后端,如何从数据库中按字母顺序检索数据.
示例我的数据库kk有列
kk_id,
kk_name
kk_name具有值
阿贝贝
约翰
kalid
biruk
艾哈迈德
安瓦尔
贝基
beruk
阿莱姆
我想使用组合框检索此数据,并想像这样检索
当我开始在组合框中输入"a"时,我的组合框必须按字母顺序获取以"a"开头的值,如下所示:
阿贝贝
艾哈迈德
阿莱姆
安瓦尔
如果我先输入"b"
贝基
beruk
biruk
并很快就为我提供了完整的步骤
感谢

I''m using c# 2005 as a front and sql2005 as aback how can i retrieve data alphabetically from data base.
example my data base kk has columns
kk_id,
kk_name
kk_name has values
abebe
john
kalid
biruk
ahmed
anwar
beki
beruk
alem
i wanna to retrieve this data using combo box and wanna to retrieve like this
when i begin typing ''a'' in my combo box my combo box must fetch values beginning with ''a'' alphabetically like this:
abebe
ahmed
alem
anwar
if i begin by typing ''b''
beki
beruk
biruk
and soon help me on this with full steps
thanks

推荐答案

这可能是您要查找的内容: ^ ]
This might be what you are looking for: Ajax Control Toolkit (Combobox)[^]


您可以通过触发诸如
这样的简单查询来轻松实现它
You can easily achieve it by firing simple query like

select * from kk  where kk_Name Like ''a%''



其中 a 将在组合框中键入文本

我建议您考虑通配符sql20005的字符


谢谢

:)



Where a will be text typed in combobox

I suggest you to take view of wild card Character of sql20005


Thanks

:)


这篇关于编程帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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