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

Dropdown on ASP page

Hi All

I just wondering if someone can suggest a solution to this tricky issue we
have got.

I have an asp form which allow our users to create a new record and save it
to the database. On the form one of the field's is a "clientname" field
which is a dropdown populated from one of the tables called clients.

The issue is the clients table has about 3000 records. I have created a
dropdown to display all the client to allow the users to choose from it but
I would think this will cause issues when it comes to selecting a client
that it will be quite difficult to navigate and scroll a dropdown of 3000+
records to find the client that the user needs. Further I would like to
think it is quite an inefficient use of resources to display 3000 records in
a dropdown when only one is going to be choosen.

Has anyone got any suggestions on how this can be improved? I thought about
creating a pop box to allow users to search for the clients , then
displaying the client names as hyperlinks and the choosen one is them
clicked but this has an issue. If the record was saved at that point I could
simply write update code to change the client field of the record at that
stage but the issue is the record is still being created i.e. I don't have
the ID (autonumber in the access database) hence cannot run an update query
to store the selected client in the database.

Can you think of anything else? Any help is greatly appreciated. Please post
a comment if anything in this post is not clear.

Jul 22 '05 #1
2 1465
"JP SIngh" <no**@none.com> wrote in message
news:#t**************@TK2MSFTNGP15.phx.gbl...
Hi All

I just wondering if someone can suggest a solution to this tricky issue we
have got.

I have an asp form which allow our users to create a new record and save it to the database. On the form one of the field's is a "clientname" field
which is a dropdown populated from one of the tables called clients.

The issue is the clients table has about 3000 records. I have created a
dropdown to display all the client to allow the users to choose from it but I would think this will cause issues when it comes to selecting a client
that it will be quite difficult to navigate and scroll a dropdown of 3000+
records to find the client that the user needs. Further I would like to
think it is quite an inefficient use of resources to display 3000 records in a dropdown when only one is going to be choosen.

Has anyone got any suggestions on how this can be improved? I thought about creating a pop box to allow users to search for the clients , then
displaying the client names as hyperlinks and the choosen one is them
clicked but this has an issue. If the record was saved at that point I could simply write update code to change the client field of the record at that
stage but the issue is the record is still being created i.e. I don't have
the ID (autonumber in the access database) hence cannot run an update query to store the selected client in the database.

Can you think of anything else? Any help is greatly appreciated. Please post a comment if anything in this post is not clear.


One approach is to have the user select a letter and generate a drop-down
list of only client names that start with that letter.

An IE-only approach is to generate a single-drop down and add "type ahead"
support so that when each successive character is entered the nearest option
is selected.

// Cooking with JavaScript & DHTML
// Bonus Recipe: Typing select Element Choices in IE for Windows
// http://www.oreillynet.com/pub/a/java...nygoodman.html
// http://www.oreillynet.com/lpt/a/4135
Jul 22 '05 #2
Hi,
I have done the following to implement the same kind of search for one of my
sites.
1. Provide alphabetical links A till Z.
2. Clicking on one of the alphabets, I will display the records that start
with the chosen alphabet. This reduces the sql overhead. It also reduces the
time the user has to search, if he knows the starting alphabet though :).
3. When the user selects a particular record, i will set that value to my
form textbox.

Does this help?
Ganesh

"JP SIngh" wrote:
Hi All

I just wondering if someone can suggest a solution to this tricky issue we
have got.

I have an asp form which allow our users to create a new record and save it
to the database. On the form one of the field's is a "clientname" field
which is a dropdown populated from one of the tables called clients.

The issue is the clients table has about 3000 records. I have created a
dropdown to display all the client to allow the users to choose from it but
I would think this will cause issues when it comes to selecting a client
that it will be quite difficult to navigate and scroll a dropdown of 3000+
records to find the client that the user needs. Further I would like to
think it is quite an inefficient use of resources to display 3000 records in
a dropdown when only one is going to be choosen.

Has anyone got any suggestions on how this can be improved? I thought about
creating a pop box to allow users to search for the clients , then
displaying the client names as hyperlinks and the choosen one is them
clicked but this has an issue. If the record was saved at that point I could
simply write update code to change the client field of the record at that
stage but the issue is the record is still being created i.e. I don't have
the ID (autonumber in the access database) hence cannot run an update query
to store the selected client in the database.

Can you think of anything else? Any help is greatly appreciated. Please post
a comment if anything in this post is not clear.

Jul 22 '05 #3

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

Similar topics

1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
0
by: Henke | last post by:
Hi, I have done some research about my problem I have when using the "back button" in IE to go back to a page with two dropdown lists. The both dropdown lists are populated with data. The...
8
by: Kris Rockwell | last post by:
Hello, I have done the following to bind data to a DropDown box: 1. Drag SQLServer table onto web form to create data connection and data adapter. 2. Generate dataset by right-clicking on...
6
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. ...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
3
by: devNorway | last post by:
I have been struggling with a problem for days now, and searched for related problems and solutions but had no luck. I have two dropdown listboxes where the first is populated in page load and...
1
by: Oleg | last post by:
Hi, I'm having a problem with page caching and therefore reusing dropdown box contents. Scenerio: user1 has security to see list of three items(.aspx populates it with three items only) in...
2
by: Peter | last post by:
ASP.NET 2003 In the DataGrid how do I select current cell value in the dropdown box when I click on the edit link, currently when I click on the edit link in the DataGrid the dropdown box...
11
by: tokcy | last post by:
Hi everyone, I am new in php and ajax, i am facing the prob while i click on element of first drop down then in second dropdown all element showl come from database. I mean i have three dropdown 1....
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.