473,473 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Show the progress of an asp.net page while loading..

Hello,

I have created an asp.net web page with 3 datagrids. Every datagrid
binds to a diferent sql query, against a sql server. I first bind
one, then the other and then the last, all using code on Page_Load
event.

When I load this page, the navigator doesn't show anything until the
page load finish. Then I can see the results of the 3 datagrids.

What I want is to bind the first datagrid, show the results and
continue binding the second one, show the results and bind the
third.

In CLASSIC ASP I used Response.Buffer=true at the beginning of my code
and Response.Flush every time i wanted to show the results. I've
tried to use this commands with asp.net but it doesn't function.

Is it possible to do this? How?

Thank you very much.
Jc
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #1
3 2533
nope what you want to do is not possible...

you are binding the datagirds in page load event and you want to render them
at one at a time so that user can see some data...

but webcontrols are not rendered untill page_load is finished... any if any
events are handled. It is at this point that render is called.. and one of
the calls it
rendering the child objects.. this is where actual data is written to the
response.outputstream

you only other option is to not use datagrid rather use classic
Response.Write and output your own html for the grid generation (table like
we used to use in classic asp)

(or what you could potentially do is reduce the amount of data that is
fetched... use paging... query only for records you need (custom paging)
even resort to caching if it helps..

--

Regards,

HD
"jcfilth" <jc*****@navegalia-dot-com.no-spam.invalid> wrote in message
news:40**********@Usenet.com...
Hello,

I have created an asp.net web page with 3 datagrids. Every datagrid
binds to a diferent sql query, against a sql server. I first bind
one, then the other and then the last, all using code on Page_Load
event.

When I load this page, the navigator doesn't show anything until the
page load finish. Then I can see the results of the 3 datagrids.

What I want is to bind the first datagrid, show the results and
continue binding the second one, show the results and bind the
third.

In CLASSIC ASP I used Response.Buffer=true at the beginning of my code
and Response.Flush every time i wanted to show the results. I've
tried to use this commands with asp.net but it doesn't function.

Is it possible to do this? How?

Thank you very much.
Jc
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 18 '05 #2
Thank you very much, Hermit Dave, now I understand.
Hermit Davewrote: nope what you want to do is not possible...
you are binding the datagirds in page load event and you want to render them at one at a time so that user can see some data...

but webcontrols are not rendered untill page_load is finished... any if any events are handled. It is at this point that render is called.. and one of the calls it
rendering the child objects.. this is where actual data is written to the response.outputstream

you only other option is to not use datagrid rather use classic
Response.Write and output your own html for the grid generation (table like we used to use in classic asp)

(or what you could potentially do is reduce the amount of data that is fetched... use paging... query only for records you need (custom paging) even resort to caching if it helps..

--

Regards,

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #3
You might want to check out this technique:

Progress Bar in Web Application

http://www.myblogroll.com/Articles/progressbar/

and this one:

http://www.ddconsult.com/blogs/illum...es/000089.html
"jcfilth" <jc*****@navegalia-dot-com.no-spam.invalid> wrote in message
news:40**********@Usenet.com...
Hello,

I have created an asp.net web page with 3 datagrids. Every datagrid
binds to a diferent sql query, against a sql server. I first bind
one, then the other and then the last, all using code on Page_Load
event.

When I load this page, the navigator doesn't show anything until the
page load finish. Then I can see the results of the 3 datagrids.

What I want is to bind the first datagrid, show the results and
continue binding the second one, show the results and bind the
third.

In CLASSIC ASP I used Response.Buffer=true at the beginning of my code
and Response.Flush every time i wanted to show the results. I've
tried to use this commands with asp.net but it doesn't function.

Is it possible to do this? How?

Thank you very much.
Jc
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


Nov 18 '05 #4

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

Similar topics

3
by: TJS | last post by:
Can anyone see why the javascript below will not work in Firefox ? ===================================================== <script runat = "server"> Private Sub Page_Load(sender As Object, e As...
4
by: Kenneth Keeley | last post by:
Hi, I have a page that uploads files to my server and I wish to display a "Please wait while uploading" page to the user while the file is uploading. I have been able to redirect the user once the...
0
by: jcfilth | last post by:
Hello, I have created an asp.net web page with 3 datagrids. Every datagrid binds to a diferent sql query, against a sql server. I first bind one, then the other and then the last, all using code...
11
by: simon | last post by:
when I execute aspx page, it works about 5 minutes - I calculate some statistics. Is there some way, that I can show user time bar or smething similar? That he nows, that page is working. ...
0
by: Timo | last post by:
My (intranet) aspx page finishes loading but the progress bar continues to advance very very very slowly, i.e. a new chunk on the bar is added 10 seconds or so, and then progress bar stops about...
7
by: Oleg | last post by:
I have a web form let's say 'YYZ.aspx'. It has an iframe in it. When it loads it shows progress bar in IE this way: loading for page then again loading for page in iframe. This part is fine....
6
by: Vikas Kumar | last post by:
Hi if I want to show a progress bar in my web application how can i do it Like this much % of task has been completed as its shown when installing some desktop application i want to do same in my...
3
by: Max2006 | last post by:
Hi, I have the following code to show the UpdateProgress contents at the center of page: <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"...
4
by: frozenade | last post by:
Hello all.. merry christmas.. :) I need to show progress status when a button is clicked. I use this script. but I know that this code is still very bad. <html>
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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 project—planning, coding, testing,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.