473,387 Members | 1,529 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.

Handling Slow Loading User Controls

I want to be able to have a page that has several controls on on it, but I
want the page to load first of all and display a loading image on each
control and then I want to then display teh controls as the data has bound
to each control as some of the data I need to load is very big and takes
some time.

I have found some code that creates a Javascript that handles this, but it
only works at page level.

I have looked at the ATLAS progress update and this only handles things at
page level. Does anyone have any ideas or resources that they could point
me to, to help me resolve thsi problem, thanks in advance.

Alixx
Jun 21 '06 #1
1 3388
you have to accept the http model.

1) the browser requests a page
2) the server builds the page and sends it back
3) the browser renders the page.

the server can not send more info after the request is done. the browser can
not render until it has enough of the html to render (if complex it may wait
until its received the enttire page). the server can not change any html its
already sent.

there 4 common ways to do what you want:

1) use progress page - start the control building with a brackground thread
on the server and have the client poll with javascript or meta refresh

2) use iframes - each control is hosted by an iframe, and thus an individual
request.

3) use ajax. - javascript makes request back to the server, and uses dynamic
html to update the page.

4) applet - write an applet in java, flash, or active/x. it can perform lazy
loads.

-- bruce (sqlwork.com)

"Alixx Skevington" <Sk*********@community.nospam> wrote in message
news:ua****************@TK2MSFTNGP04.phx.gbl...
I want to be able to have a page that has several controls on on it, but I
want the page to load first of all and display a loading image on each
control and then I want to then display teh controls as the data has bound
to each control as some of the data I need to load is very big and takes
some time.

I have found some code that creates a Javascript that handles this, but it
only works at page level.

I have looked at the ATLAS progress update and this only handles things at
page level. Does anyone have any ideas or resources that they could point
me to, to help me resolve thsi problem, thanks in advance.

Alixx

Jun 21 '06 #2

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

Similar topics

4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
9
by: Lloyd Sheen | last post by:
In an attempt to reformat the web page I moved controls into a frame and then when that did no good I replaced then on the aspx in the same order as before. When I did the CTL-X the handlers lost...
1
by: Nick Stansbury | last post by:
Hi, Is there any way to cause a page to completely resubmit itself from the server side? I have an array of user controls that, in the event handler of the user control itself, add new user...
9
by: Sridhar | last post by:
Hi, I have created a web page which includes a place holder. I also have a dropdown list in that webpage. when I select one of the choices in that dropdown list, It will load a user control...
6
by: Jrsmith | last post by:
I am developing a mdi application that will act as a front end to a database. I am finding that when i show any of the mdi child forms in my application it is noticeable that the form is shown...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
5
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to...
2
by: adiel_g | last post by:
I added a user control to a webform in Asp.net 2.0. I am also adding several other user controls to this webform. Now I am trying to find a way to stop the user controls from loading up when I...
3
by: John | last post by:
Hi I have replaced an ms access app with its vb.net version at a client site. Now the clients keeps complaining about how slow the app response is. The complains they have are for example when...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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.