请帮助下拉框 [英] Help with a drop down box please

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

问题描述

我想知道你是否可以提供帮助。 我想在页面上创建一个文本框,用户可以在其中键入他们想要的前几个字母,然后从数据库中的预定义列表中获得可能要查找的内容的建议。 
我已经研究了如何做到这一点,但是我真的有点傻了,我不知道如何使用ajax以及它告诉我做的其他事情! 所以,我的想法是,也许我可以使用下拉列表,它将数据绑定到
数据库中的列,然后用户可以在那里输入前几个字母。 我已经制作了下拉列表,我已经对它进行了数据处理,但是当我测试它时,我只能输入我要查找的第一个字母,而不是其他任何东西,所以如果我正在寻找DOG(为
)非常基本的),我只能输入D并获得所有"D"的列表。而不是能够键入"DO"并缩短可能性列表。 这有道理吗?? !! 我正在使用aspx和c#。 如果有人可以帮助我那会很棒!!

I wonder if you can help.  I wanted to create a textbox on the page where users could type in the first few letters of what they want and then they would be given suggestions of what the might be looking for from a pre defined list in a database.  I have looked into how this could be done but it's all a bit beyone me really, I dont know how to use ajax and other things it was telling me to do!  So, my thought is that maybe I could use a dropdown list which would be databound to the columnin the database and then the user could type the first few letters there.  I have made my drop down list, I have databound it, but when I test it, I can only type the first letter of what I am looking for and nothing else, so if I was looking for DOG (to be very basic), I can only type in D and get a list of all the "D's" rather than being able to type "DO" and shorten the list of possibilities.  Does that make sense??!!  I am using aspx and c#.  If someone could help me that would be great!!

 

推荐答案

刚出来好奇心数据库中有多少项?

Just out of curiosity how many items are in the db?

MIKE E


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

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