473,320 Members | 1,926 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,320 software developers and data experts.

DropDownList Control Functionality

Hi. I'm using VS2005 and working with the Dropdownlist control on an ASP page.

My dropdownlist has several thousand items, all integers, ranging from 1000
to 80000 (these represent different company acocunts). With that many items,
I would like the user to be able to not only choose from the list, but type
the number in the list as well to avoid having to scroll through all of them.
Now, if the user currently enters a '1', they are taken to the first record
in the 1000 range - great! But, if the user types '12', they are taken to
the 2000 range (the last number entered), even though there are a list of
codes availabe in the 1200 range. Ideally they should be able to type a
portion or the entire number as well as select it from the dropdown. (I know
this works in non-asp app dev). So, question is: Does anyone know how to
make this functionally work with the standard ASP.NET ddl control, or does
anyone know of another control I can purchase to get this functionality?

Thanks!

-Matt
Mar 28 '06 #1
1 1748
Matt wrote:
Hi. I'm using VS2005 and working with the Dropdownlist control on an
ASP page.
Classic ASP (.asp) or ASP.Net ).aspx)?

If the latter (which the use of "dropdownlist" seems to confirm), here is my
standard reply:
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
However, read on ...

My dropdownlist has several thousand items, all integers, ranging
from 1000
to 80000 (these represent different company acocunts). With that
many items, I would like the user to be able to not only choose from
the list, but type the number in the list as well to avoid having to
scroll through all of them. Now, if the user currently enters a '1',
they are taken to the first record
in the 1000 range - great! But, if the user types '12', they are
taken to
the 2000 range (the last number entered), even though there are a
list of codes availabe in the 1200 range.
This is the standard behavior of an HTML SELECT element, which is what the
asp.net DropDownList control generates.
Ideally they should be
able to type a portion or the entire number as well as select it from
the dropdown. (I know this works in non-asp app dev). So, question
is: Does anyone know how to make this functionally work with the
standard ASP.NET ddl control, or does anyone know of another control
I can purchase to get this functionality?

Either create your own user control that combines a textbox, a listbox, and
client-side code to respond to keypress events in the textbox to repopulate
the listbox with the corresponding items.
or
Check out the control library at www.asp.net to make sure you are not
reinventing the wheel

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 28 '06 #2

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

Similar topics

4
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new...
3
by: Earl Teigrob | last post by:
I want to write a function where I pass in a reference to a dropdownlist and a "match value" and have it returns the index of the dropdownlist item that matchs (or -1 if there is no match) ...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
2
by: glenn | last post by:
Hi folks, I am trying to determine which item in a DropDownList Web control has been selected. I have posted an OnSelectedIndexChanged subroutine in my code with a reference to the subroutine...
1
by: DJ | last post by:
I have a DropDownList in Visual Web Developer that is databound to a SQL Database. Whenever the web page is opened the DropDownList is automatically filled with the first item in the table. My...
7
by: AG | last post by:
Hi, ASP.NET 2.0 web app I have a GridView utilizing template columns and bound to an objectdatasource. In the edit template of one column there is a dropdownlist bound to another...
7
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the...
18
by: Redhairs | last post by:
Is it possible to get DropDownList.SelectedValue in Page_PreInit() event during the postback?
3
by: =?Utf-8?B?Y21lZWsxXzE5OTk=?= | last post by:
Hello, On a webpage, create an UpdatePanel with two DropDownLists. Set AutoPostBack of DropDownList1 to true. In the SelectedIndexChanged method, refill DropDownList2 and set the focus to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.