473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

drop down list should display data as user enters value in it

Hi,

I have a drop down list bound to a database thorugh a data reader. It reads
the customer names from data reader.

Now, I want the user to be able to type more than one alphabet & the list
becomes shorter & shorter for the user to choose a value from. For example,
suppose the user wants to select the name "Michael" from the dop down list .
So when he tabs over & reaches this drop down list, he types "Mi" , then all
the names beginning with "Mi " are displayed . When he ttypes "Mic", then the
drop down list becomes shorter & all the names beginning with "Mic" are
displayed.

The drop down list which I have now allows typing only the first letter &
not subsequent letters. Presently, if a user types "M" , then all names
beginning with M are displayed but when the user types the next letter "i"
(from "Michael) , then the list shows all the letters beginning with "I"
rather than beginning with "Mi".

How to go about doing this?

Thanks

--
Nov 19 '05 #1
3 2456
You can't find this kind of functionality in the standard controls. You
have to either write your own control or buy it from a third party, i
know infragistics WebCombo has that.

Nov 19 '05 #2
Standard HTML does not support such a control, however it can be faked
fairly effectively with client side script.
Here's a free control that does what you describe, and the source code is
freely available in case you'd like to enhance it:
http://www.metabuilders.com/tools/ComboBox.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"pmud" <pm**@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
Hi,

I have a drop down list bound to a database thorugh a data reader. It
reads
the customer names from data reader.

Now, I want the user to be able to type more than one alphabet & the list
becomes shorter & shorter for the user to choose a value from. For
example,
suppose the user wants to select the name "Michael" from the dop down list
.
So when he tabs over & reaches this drop down list, he types "Mi" , then
all
the names beginning with "Mi " are displayed . When he ttypes "Mic", then
the
drop down list becomes shorter & all the names beginning with "Mic" are
displayed.

The drop down list which I have now allows typing only the first letter &
not subsequent letters. Presently, if a user types "M" , then all names
beginning with M are displayed but when the user types the next letter "i"
(from "Michael) , then the list shows all the letters beginning with "I"
rather than beginning with "Mi".

How to go about doing this?

Thanks

--

Nov 19 '05 #3
Thanks, I will try that.
:))

"Steve C. Orr [MVP, MCSD]" wrote:
Standard HTML does not support such a control, however it can be faked
fairly effectively with client side script.
Here's a free control that does what you describe, and the source code is
freely available in case you'd like to enhance it:
http://www.metabuilders.com/tools/ComboBox.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"pmud" <pm**@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
Hi,

I have a drop down list bound to a database thorugh a data reader. It
reads
the customer names from data reader.

Now, I want the user to be able to type more than one alphabet & the list
becomes shorter & shorter for the user to choose a value from. For
example,
suppose the user wants to select the name "Michael" from the dop down list
.
So when he tabs over & reaches this drop down list, he types "Mi" , then
all
the names beginning with "Mi " are displayed . When he ttypes "Mic", then
the
drop down list becomes shorter & all the names beginning with "Mic" are
displayed.

The drop down list which I have now allows typing only the first letter &
not subsequent letters. Presently, if a user types "M" , then all names
beginning with M are displayed but when the user types the next letter "i"
(from "Michael) , then the list shows all the letters beginning with "I"
rather than beginning with "Mi".

How to go about doing this?

Thanks

--


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic...
2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
0
by: Esteban404 | last post by:
I have an ASP.NET page with two drop down lists and several text boxes. A dataset is created based on the first list's selected value and then it's stored in the page's ViewState. It loads the...
2
by: Eric Dan | last post by:
Hi, Even tough I was able to implement what I want in a weird and non efficient way, I would like to get an opinion what is the right way to achieve my task: Scenario: • Display a DataGrid...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
0
by: weiwei | last post by:
Hi here is my scenario, I create a drop down list in itemtemplate.(that drop down is created from db), after user click edit command, my ideal plan is have another drop down list in...
2
by: leeperman | last post by:
In Dreaweaver I cannot filter my database results to display only specific data that is retrieved from mulptile drop down list on my search page. The drop down list selections are posted to my...
1
by: deerick | last post by:
Hi there I want to know how to add a drop down list based on value from a table in an asp form. Then I want the user to be able to submit the form, and the drop down list value that they have...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.