Google Grup tidak lagi mendukung postingan atau langganan Usenet baru. Konten lama masih dapat dilihat.

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

47 kali dilihat
Langsung ke pesan pertama yang belum dibaca

jcfilth

belum dibaca,
15 Jan 2004, 05.18.0515/01/04
kepada
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

Hermit Dave

belum dibaca,
15 Jan 2004, 06.33.3115/01/04
kepada
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" <jcf...@navegalia-dot-com.no-spam.invalid> wrote in message
news:400668dd$1...@Usenet.com...

jcfilth

belum dibaca,
15 Jan 2004, 10.18.4915/01/04
kepada
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,
>
>

Ken Cox [Microsoft MVP]

belum dibaca,
15 Jan 2004, 19.11.1615/01/04
kepada
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/illuminati/archives/000089.html


"jcfilth" <jcf...@navegalia-dot-com.no-spam.invalid> wrote in message
news:400668dd$1...@Usenet.com...

0 pesan baru