468,771 Members | 1,941 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

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 3109
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Adrian MacNair | last post: by
9 posts views Thread by Lloyd Sheen | last post: by
1 post views Thread by Nick Stansbury | last post: by
9 posts views Thread by Sridhar | last post: by
6 posts views Thread by Jrsmith | last post: by
5 posts views Thread by =?Utf-8?B?V2FubmFiZQ==?= | last post: by
2 posts views Thread by adiel_g | last post: by
3 posts views Thread by John | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.