469,572 Members | 1,281 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Speeding up page display

Hello all,

I was wondering if there is a way to speed up the rendering of a web page
to the client browser... In my case, I am retrieving about 60 - 100 rows of
data from an SQL Server and I wish to display these rows the client as I am
retrieving them (while looping). I get the results from SQL and populate a
dataset, then I loop through the dataset and add the data to an
<asp:tablecell> object on the aspx page. Part of the data I retrieve is a
URL which points to an image on the server (the image is not stored in SQL,
just the path) of which I add then add an image control to the web page. I
believe it is in this area that takes most of the time.

It looks like the client/browser waits untill the entire contents of the
table are populated (60 - 100 table cells) before it will render the page.
My question is: Is there a way to tell the browser to start showing the
images as my code loops through the dataset? I have tried setting the
response.bufferoutput to false, but it actually did not start displaying
each row as it was added - it waited till they all were added and then
rendered the page and it took longer than response.bufferoutput = true
configuration.

I was thinking of using response.flush() after every 10 or 20 loops
through the data set.... will this work and receive an increase in
performance? Thanks for any help with this matter!!!

Regards,

Troy
Nov 18 '05 #1
4 2369
No tips??!?!!??

"Troy" <ez*****@netzero.net> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
Hello all,

I was wondering if there is a way to speed up the rendering of a web page to the client browser... In my case, I am retrieving about 60 - 100 rows of data from an SQL Server and I wish to display these rows the client as I am retrieving them (while looping). I get the results from SQL and populate a dataset, then I loop through the dataset and add the data to an
<asp:tablecell> object on the aspx page. Part of the data I retrieve is a
URL which points to an image on the server (the image is not stored in SQL, just the path) of which I add then add an image control to the web page. I believe it is in this area that takes most of the time.

It looks like the client/browser waits untill the entire contents of the
table are populated (60 - 100 table cells) before it will render the page.
My question is: Is there a way to tell the browser to start showing the
images as my code loops through the dataset? I have tried setting the
response.bufferoutput to false, but it actually did not start displaying
each row as it was added - it waited till they all were added and then
rendered the page and it took longer than response.bufferoutput = true
configuration.

I was thinking of using response.flush() after every 10 or 20 loops
through the data set.... will this work and receive an increase in
performance? Thanks for any help with this matter!!!

Regards,

Troy

Nov 18 '05 #2
No tips??!?!!??

"Troy" <ez*****@netzero.net> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
Hello all,

I was wondering if there is a way to speed up the rendering of a web page to the client browser... In my case, I am retrieving about 60 - 100 rows of data from an SQL Server and I wish to display these rows the client as I am retrieving them (while looping). I get the results from SQL and populate a dataset, then I loop through the dataset and add the data to an
<asp:tablecell> object on the aspx page. Part of the data I retrieve is a
URL which points to an image on the server (the image is not stored in SQL, just the path) of which I add then add an image control to the web page. I believe it is in this area that takes most of the time.

It looks like the client/browser waits untill the entire contents of the
table are populated (60 - 100 table cells) before it will render the page.
My question is: Is there a way to tell the browser to start showing the
images as my code loops through the dataset? I have tried setting the
response.bufferoutput to false, but it actually did not start displaying
each row as it was added - it waited till they all were added and then
rendered the page and it took longer than response.bufferoutput = true
configuration.

I was thinking of using response.flush() after every 10 or 20 loops
through the data set.... will this work and receive an increase in
performance? Thanks for any help with this matter!!!

Regards,

Troy

Nov 18 '05 #3
1. Browser (IE) displays table only once it has all HTML for that table.
So even if you are spiting out HTML using Response.Flush browser will not
show the table until tag </table> is received.

2. When exactly do you call Response.Flush?
When you adding Row object to the Table object it does not produce HTML
right away.
HTML will be generated only on when RenderControl method is called.
And it's called almost at the end of the request.

So my point is that you are just wasting time by calling Response.Flush
since no HTML was generated.
---------------

If you want to have such behavior you got to
1. No table
2. Use inline code as you would in regular ASP (Response.Write) to produce
output.

George.

"Troy" <ez*****@netzero.net> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
No tips??!?!!??

"Troy" <ez*****@netzero.net> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
Hello all,

I was wondering if there is a way to speed up the rendering of a web page
to the client browser... In my case, I am retrieving about 60 - 100 rows of
data from an SQL Server and I wish to display these rows the client as I am
retrieving them (while looping). I get the results from SQL and

populate a
dataset, then I loop through the dataset and add the data to an
<asp:tablecell> object on the aspx page. Part of the data I retrieve is

a URL which points to an image on the server (the image is not stored in

SQL,
just the path) of which I add then add an image control to the web page.

I
believe it is in this area that takes most of the time.

It looks like the client/browser waits untill the entire contents of the table are populated (60 - 100 table cells) before it will render the page. My question is: Is there a way to tell the browser to start showing the
images as my code loops through the dataset? I have tried setting the
response.bufferoutput to false, but it actually did not start displaying
each row as it was added - it waited till they all were added and then
rendered the page and it took longer than response.bufferoutput = true
configuration.

I was thinking of using response.flush() after every 10 or 20 loops
through the data set.... will this work and receive an increase in
performance? Thanks for any help with this matter!!!

Regards,

Troy


Nov 18 '05 #4
1. Browser (IE) displays table only once it has all HTML for that table.
So even if you are spiting out HTML using Response.Flush browser will not
show the table until tag </table> is received.

2. When exactly do you call Response.Flush?
When you adding Row object to the Table object it does not produce HTML
right away.
HTML will be generated only on when RenderControl method is called.
And it's called almost at the end of the request.

So my point is that you are just wasting time by calling Response.Flush
since no HTML was generated.
---------------

If you want to have such behavior you got to
1. No table
2. Use inline code as you would in regular ASP (Response.Write) to produce
output.

George.

"Troy" <ez*****@netzero.net> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
No tips??!?!!??

"Troy" <ez*****@netzero.net> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
Hello all,

I was wondering if there is a way to speed up the rendering of a web page
to the client browser... In my case, I am retrieving about 60 - 100 rows of
data from an SQL Server and I wish to display these rows the client as I am
retrieving them (while looping). I get the results from SQL and

populate a
dataset, then I loop through the dataset and add the data to an
<asp:tablecell> object on the aspx page. Part of the data I retrieve is

a URL which points to an image on the server (the image is not stored in

SQL,
just the path) of which I add then add an image control to the web page.

I
believe it is in this area that takes most of the time.

It looks like the client/browser waits untill the entire contents of the table are populated (60 - 100 table cells) before it will render the page. My question is: Is there a way to tell the browser to start showing the
images as my code loops through the dataset? I have tried setting the
response.bufferoutput to false, but it actually did not start displaying
each row as it was added - it waited till they all were added and then
rendered the page and it took longer than response.bufferoutput = true
configuration.

I was thinking of using response.flush() after every 10 or 20 loops
through the data set.... will this work and receive an increase in
performance? Thanks for any help with this matter!!!

Regards,

Troy


Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Snyke | last post: by
5 posts views Thread by joethis | last post: by
12 posts views Thread by dvumani | last post: by
2 posts views Thread by Wayne | last post: by
5 posts views Thread by jcrouse | last post: by
5 posts views Thread by Erik Lautier | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.