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

Server Processing and Visibility

RMD
I have a portal application that uses UserControls as "portlets" inside the
portal. One feature of the portal is the ability to maximize and minimize
portlets, just like you would applications in windows. So far, so good.

The problem is this. When a portlet is minimize, or when it is "behind"
another maximized portlet, there is still quite a bit of server side
processing going on. In order to preserve viewstate for the hidden/minimized
portlets, I only set their visible property to false instead of removing
them from the page entirely. This works great, except that it can result in
a bad user experience.

Say I have 20 portlets on a page, and I maximize one of these portlets. As
far as the server is concerned, there are still 20 usercontrols to be
processed for that page (so it's still just as slow as before), except now
the HTML rendered is a bit different. (ie, only the maximized portlet is
rendered.) If that portlet calculated pie to the billionth decimal place
every time it was shown, it would do that this time as well, even though
those results will always be ignored (never rendered.)

What I would like to do is this: If I detect that a portlet won't be
visible, instead of loading the full fledged UserControl, I load a different
control that simply preserves the viewstate of the previous UserControl.
When I detect that the portlet is going to be visible again (like when it is
restored from a minimized state, or when the other maximized portlet is
restored to a normal state), I switch back to the UserControl.

Is there anyway to achieve what I want?

Thanks,
RMD
Nov 17 '05 #1
0 1221

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

Similar topics

1
by: Jo Becaus | last post by:
Hi, I created ASP page with following sourcecode. <%@ language="VBSCRIPT" %> <!--#include file="./configuration/code_nofile.asp"--> <!-- Author: Jo Becaus --> <HTML> <HEAD>
5
by: Bryan Field-Elliot | last post by:
We're designing a web app in which some operations will take a long time to complete (maybe two minutes). Because it's a high-volume application, we don't want browser connections hanging open for...
3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
12
by: lawrence | last post by:
The following function correctly makes everything invisible but then fails to turn the one chosen DIV back to visible. I imagine I'm getting the syntax of the variable wrong? I've tried this with...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
8
by: TTroy | last post by:
I have a few questions about "scope" and "visibility," which seem like two different things. To me "visibility" of the name of a function or object is the actual code that can use it in an...
11
by: Dot net work | last post by:
Hello. I've read many posts about disabling submit buttons, but I can't get these answers to solve my problem. I have a server side asp.net button, and under the button I have code behind...
5
by: Joe Reazor | last post by:
I've got an asp.net page that has approximately 1,440 controls on it. You must think I'm crazy, but we need to have the page organized in this fashion. As you can imagine, the page takes a very...
4
by: Wayne Fang | last post by:
Hi, For various reasons (parallel structure with existing code, commonality of concepts, etc), we have C language functions implemented that use libpq to make a new connection to the same Postgres...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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.