473,806 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP. NET HUGE pages resulting from common DropDownList controls problem

7 New Member
I am working in ASP .NET 2.0 and have a Web application which requires many (48) DropDownList s which all need to show the same data list; and the list is like 400 items long. I have been working in the industry for many years and have no problem in building the data list from a DB, attaching it to all 48 controls, and having the app/page work OK, but (as you experts are no doubt saying) the page re-draw is painful and the size of the delivered page is huge. I have no doubt that there is some "correct" way to do this which does not require the HTML to carry every one of the 48 X 400 lists explicitly spelled out, (or of course some slicker way to do this in the ".aspx" page) but I can't find it. Thanks for any help.
Feb 19 '08 #1
5 1332
markrawlingson
346 Recognized Expert Contributor
Ouch. So the end result is 48 drop down lists each with 400 items displayed simultaneously on a single page?

Why do you need ALL 48 displayed on the same page? Is it a master/sub category situation, or what's the deal? Explain a bit further what the purpose of these 48 controls are exactly and how they function. Without knowing that I can't really offer up a competent solution but it sounds like you may want to sort of 'split' the data load somehow, using page enumeration or perhaps ajax if those options are possible and pertinent to the end result.

One of the web sites I work with has sort of the same situation, but not nearly as drastic. The site has 500 end categories (and growing), plus the master categories and sub categories, etc. We use 3 drop down list controls so that a user can choose the master or top category, then a sub category, and then the end category. When a user chooses a master or top category, we use ajax to make a silent request in the backend to grab the sub categories according to what the user chose in the master/top category drop down, and fill in the control with whatever data we get back.

In this way, the page loads with only the master/top category drop down filled in (maybe 50 <option>s at most), the sub category and end category drop downs only fill in when the user chooses a master/top category (and sub-category, respectively) - so the page doesn't load all 500-600 categories on the page all at once - they only load when needed.

Explain the situation a little bit further and perhaps even provide a link if at all possible, and we'll see what we come up with ;)

Sincerely,
Mark
Feb 19 '08 #2
writeallnight
7 New Member
Mark,

Thanks for the response; and yes there are some ways I can "sidestep" the problem; the most obvious is that since the user doesn't always (for all instances/"uses" of the Page) use/need all 48 of the DDLs, I can wait to populate them until we know (from page postbacks) exactly how many of the 48 they will need; then populate just what they will need (however to some extent this will be the same problem; because there are many cases where 30+ of the 48 are actually used; so the difference between 30+ and 48 is small...)

Phil
Feb 19 '08 #3
markrawlingson
346 Recognized Expert Contributor
so the difference between 30+ and 48 is small...)
True, but it would be a start.

The obvious problem here is the page load, and the page load is caused by the amount of data that's being spat out at once. As such, your only real solution is to somehow split that data load into sections - a crafty UI solution to this problem is in order.

Do you have a copy of the page online somewhere so I can take a look, I'm pretty good with UI solutions and may be able to offer up some solutions on how you can split the data load into sections rather than spitting it onto the page in one go.

Sincerely,
Mark
Feb 19 '08 #4
writeallnight
7 New Member
Mark,

I just took an hour or so and re-wrote the binding code so that it only loads those DDLs which are actually used, and I am getting literally an order of magnitude faster redraws. The customer is so happy they can't see. Sometines it helps just to talk to someone...

Thanks very much,

Phil
Feb 19 '08 #5
markrawlingson
346 Recognized Expert Contributor
Sometines it helps just to talk to someone...
Couldn't agree with you more Phil. Sometimes I talk to my wife or my father about problems I'm having in programming. They know very little about computers in general, let alone programming - however just talking to someone and getting the juices flowing ALWAYS helps me get to an end solution. Sometimes completely off-topic suggestions like "bunny rabbits eat lettuce" even help, as odd as that sounds.

Anyway, glad that you were able to fix the problem!

Sincerely,
Mark
Feb 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

12
2810
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option Description"></asp:BoundColumn> <asp:TemplateColumn runat="server" HeaderText="Id Type Option" "> <itemtemplate> <asp:label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TypeOption") %>' /> <asp:label runat="server" ID="LlbTypeOption" Visible=False...
4
7463
by: theo | last post by:
Program flow...load file,then extract the xml text tags from the file,then the number of Xml tags retrieved from the file determines the number of dropdownlist controls instanciated in the placeholder,the user selects the required tags from the dropdownlists (if 5 Xml tags,then 5 dropdownlists each containing 5 xml tags) and now the btnSave button is selected which extracts the user selection form the dropdownlists.
3
2793
by: Shikari Shambu | last post by:
Hi All, I have a situation where multiple applications are sharing some pages/ controls. So, I have a separate common project that has the common pages/ controls. My question is how do I reference these pages/ controls from my ASP.NET web projects WEbApp1 url http://localhost/app1 C:\Apps\App1
12
2263
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes work orders for 7 different items, each item gets 1 page for input specs. All works well. I want to add a new item. I do not want to recompile and redistribute my app everytime just to add a new input page. Can ASPX resources be compiled into a...
6
3812
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for one day): \\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During Execution: 7 \\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
0
1835
by: Daniel Doyle | last post by:
Hello and apologies in advance for the amount of code in this post. I've also sent this message to the Sharepoint group, but thought that ASP.NET developers may also be able to help, even though it's a Sharepoint WebPart. I'm trying to do something fairly simple, create a datagrid that displays where and when a person works and allows them to change some of the information via DropDownLists. When the user clicks to edit a row, three of...
3
1165
by: Allan Ebdrup | last post by:
Hi I've created a asp.net 2.0 page with an Page_Init eventhandler that I want to share among multiple pages, what's the best approach for this? Should I inherit from the page, or is it better to create a library with the eventhandler code and insert a call to the library on Page_Init on all pages that should implement this feature? I would also like to be able to create maste pages that support the same functionality. Kind Regards,
6
3272
by: Steve | last post by:
I'm trying to iterate over all the form controls in my MasterPages content page. Basically, I've got dropdowns, textboxes, etc that I want to format in Page_Load() I've added this code to my Page_Load() event <code> private void ConfigureFormControls() { Color borderColor = ColorTranslator.FromHtml("#F5F5F5"); Color fontColor = borderColor;
6
4284
by: shashi shekhar singh | last post by:
Respected Sir, I have to create multiple dynamic dropdownlist boxes and add items dynamically in <asp:table> server control but problem occurs , i.e. except of fist dropdown list no dropdownlist boxes are generating a postback.here is a code . protected void Page_Load(object sender, EventArgs e) { int selected_question = (int)Session; if (!Page.IsPostBack) { display_blueprint(); string...
0
9598
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9192
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.