473,324 Members | 2,456 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,324 software developers and data experts.

DropDownList advice needed

dw
Hello. I have a page that needs to display a huge amount of data in a
dropdown list (10k+). Is there an easier way to implement this in .NET than
in classic ASP? I asked this same thing in the classic ASP newsgroup, and
Curt_C was kind enough to respond and say that the best way to do it is via
a search/select mechanism. I just wanted to see what better possibilities
existed in ASP.NET. Then maybe I can convince my department to quit dragging
their feet on letting us use ASP.NET. Thanks :)
Nov 19 '05 #1
3 1039
asp .net is better than asp, but downloading 10,000 strings in a
dropdownlist is a bad approach. What do you expect the user to do with this
list, read it?

--
Pete
====
Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/
Nov 19 '05 #2
I hope someone in the Classic ASP newsgroup pointed out to you that 10,000
(I didn't use the K because it makes it look a lot smaller than it really
is) items in a drop-down list box on a web page (or anywhere else, but
especially on a web page) is not practical, for the following reasons:

1. The page will take forever to load.
2. Depending upon the client, it could very well cause the client machine to
run out of memory.
3. Nobody will ever be able to find the item they are looking for.

Have you ever SEEN a drop-down list box with 10,000 items in it? Neither
have I. Kind of makes you think, doesn't it?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"dw" <co***************@uncw.edu> wrote in message
news:O8**************@TK2MSFTNGP14.phx.gbl...
Hello. I have a page that needs to display a huge amount of data in a
dropdown list (10k+). Is there an easier way to implement this in .NET
than in classic ASP? I asked this same thing in the classic ASP newsgroup,
and Curt_C was kind enough to respond and say that the best way to do it
is via a search/select mechanism. I just wanted to see what better
possibilities existed in ASP.NET. Then maybe I can convince my department
to quit dragging their feet on letting us use ASP.NET. Thanks :)

Nov 19 '05 #3
dw
Thanks, Peter and Kevin. I've scrapped the idea of the dropdown for the very
reasons you both pointed out. I'm developing the search/select option
instead. It's more code, but it's faster and more efficient -- plus it's
easier for users to find someone.

A followup which is kind of unrelated: My department won't go with ASP.NET
because they say if me and another developer leave, they won't have anyone
who can take over our code. And they say it's harder to learn than ASP.
They're all programmers (COBOL mostly), so to me this is bogus. Do you guys
know of some strong counter-arguments to the reasons these folks won't go
with ASP.NET? You don't have to convince me -- I'm sold on the technology. I
just need to convince the holdouts in our department who are scared of new
technologies. Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
I hope someone in the Classic ASP newsgroup pointed out to you that 10,000
(I didn't use the K because it makes it look a lot smaller than it really
is) items in a drop-down list box on a web page (or anywhere else, but
especially on a web page) is not practical, for the following reasons:

1. The page will take forever to load.
2. Depending upon the client, it could very well cause the client machine
to run out of memory.
3. Nobody will ever be able to find the item they are looking for.

Have you ever SEEN a drop-down list box with 10,000 items in it? Neither
have I. Kind of makes you think, doesn't it?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"dw" <co***************@uncw.edu> wrote in message
news:O8**************@TK2MSFTNGP14.phx.gbl...
Hello. I have a page that needs to display a huge amount of data in a
dropdown list (10k+). Is there an easier way to implement this in .NET
than in classic ASP? I asked this same thing in the classic ASP
newsgroup, and Curt_C was kind enough to respond and say that the best
way to do it is via a search/select mechanism. I just wanted to see what
better possibilities existed in ASP.NET. Then maybe I can convince my
department to quit dragging their feet on letting us use ASP.NET. Thanks
:)


Nov 19 '05 #4

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

Similar topics

18
by: Julia Hu | last post by:
Hi, I have a datagrid, and in different rows I need to programmatically bind different type of controls and load data into these controls. For example,in the first row I need to bind data into a...
2
by: Jennyfer J Barco | last post by:
Hello is there a way to create a dropdownlist inside a <input type='dropdownlist'> or there is an equivalent to create other than <asp:DropDownList id="drop1" runat="server"> . I need this because...
6
by: Oscar | last post by:
I want to add items to a dropdownlist control within a Javascript eventhandler. This is what I code : var dd = document.getElementById("DropDownList1"); dd.Items.Add("1990");...
1
by: IMB | last post by:
I'm using VS2005 and am working with a ASP.NET 2.0 web site and I'm coding in VB.NET. I understand that I can add an item to a databound dropdownlist and make it the default selection using the...
15
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an...
1
by: 47computers | last post by:
Hello. I'm having a bit of difficulty with some DropDownList controls within templates in a DetailsView on my web form. Basically, I have a form where a user is building a "location profile" with...
0
by: 47computers | last post by:
Hello. I'm having a bit of difficulty with some DropDownList controls within templates in a DetailsView on my web form. Basically, I have a form where a user is building a "location profile" with...
3
by: sweetpotatop | last post by:
Hi, I am try to populate a number of dropdownlist with the same item, for i = 1 to 5 dd = me.controls("dd" + Cstr(i)) itm = new listiem itm.text ="abc" itm.value ="aaa"
3
by: RPhlb | last post by:
This is my first post, so excuse me if I don't get this right the first time. I have an issue where when I use DropDownList I only get the first, or "SelectedValue" back when I update a GridView...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.