473,385 Members | 1,673 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,385 software developers and data experts.

VB.NET page loads SLOW depending on computer requesting it

I have an ASP.NET page on a remote server that takes about 60 seconds
to load from my Windows XP Pro SP2 computer with IE 6.0, but my local
copy opens instantly.

If I load the page from my Win2000 SP4 computer with IE 5.5, it loads
instantly as well.

Controls on the page are populated from an Access database.

I have tested the page by putting response.write(Now() & "<br>") in
various places (i.e., at the beginning and end of the document and at
the beginning and end of Page_Load), but these all end up within a
second of each other. So, I would assume that it has something to do
with the connection to the server based on either the Windows version
or IE version I'm using, but I'm not sure how to proceed from here.

Any help would be appreciated!

Nov 19 '05 #1
6 1530
check the size of viewstate (if you have a grid on the page, this is a
commaon problem). to check with IE, save page to disk and check file size,
with firefox view page info.

-- bruce (sqlwork.com)

"wizard04frms" <wi**********@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I have an ASP.NET page on a remote server that takes about 60 seconds
to load from my Windows XP Pro SP2 computer with IE 6.0, but my local
copy opens instantly.

If I load the page from my Win2000 SP4 computer with IE 5.5, it loads
instantly as well.

Controls on the page are populated from an Access database.

I have tested the page by putting response.write(Now() & "<br>") in
various places (i.e., at the beginning and end of the document and at
the beginning and end of Page_Load), but these all end up within a
second of each other. So, I would assume that it has something to do
with the connection to the server based on either the Windows version
or IE version I'm using, but I'm not sure how to proceed from here.

Any help would be appreciated!

Nov 19 '05 #2
Thanks for the response, Bruce.

I saved it with IE and the file size is 3.18KB. The main part of the
page is a DataGrid, as you mentioned.

Nov 19 '05 #3
I've turned on tracing and found that the page takes less than 0.2
seconds to process.

Also, I can click the refresh button or enter the address in the
address bar of a new window and it loads instantly! But if I go back
and click on the link to it, I have to wait for it again. Could it be
a problem with the link on the previous page?

Nov 19 '05 #4
if the previous page uses a postback and Server.Redirect() then it can be.

-- bruce (sqlwork.com)
"wizard04frms" <wi**********@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I've turned on tracing and found that the page takes less than 0.2
seconds to process.

Also, I can click the refresh button or enter the address in the
address bar of a new window and it loads instantly! But if I go back
and click on the link to it, I have to wait for it again. Could it be
a problem with the link on the previous page?

Nov 19 '05 #5
It uses a Response.Redirect(). I've tried Server.Redirect(), and that
loads the page instantly! But for some reason, the browser continues
saying it's "Opening..." for 60 seconds after that - no problem, just
weird. Also, the address stays the same (the first page) in the
browser's address bar; is there a way to fix that?

Nov 19 '05 #6
I figured it out! I have to use Response.Flush(), though I don't
really understand why.

Response.Redirect("page2.aspx", false)
Response.Flush()
Response.End()

Thanks for your help!

Nov 19 '05 #7

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

Similar topics

1
by: Thomas Bartkus | last post by:
Is it possible that the elapsed time being measured includes waiting for the client to acknowledge that it has received all the data? In *addition* to the server execution time? Documentation...
3
by: Shawn H | last post by:
Hi guys, I've created a web application using ASP together with SQL Server as our db source, running through IIS 6 on a Winows Server 2003 platform. This application retrieves a list of...
2
by: Dave | last post by:
Hi, can someone tell me if it's possible and if yes what the script is and where to put it in order to: have the browser check upon loading page X to see if the user's computer has Flash player...
10
by: darrel | last post by:
I have this structure: mypage.aspx (class = mypage) myusercontro.ascx On the mypage.aspx I can declare a variable: animal = "monkey" I can read this from the UC by simply doing this:...
0
by: Antonio | last post by:
Hi, we are trying to create a page for our users that contains a lot of data. One datagrid loads very slow because the query behind it is complex. We would like to load up the page to the user...
16
by: whyyyy | last post by:
The script below works fine if the form is filled out and submitted. But a (blank) e-mail is sent whenever the page loads, even when the form is not submitted. I would like to receive the e-mail...
11
by: frizzle | last post by:
Hi there, I need a function to prevent a page from being loaded too often too fast. So say, one is only allowed to refresh a single page 5 times in 10 seconds, or 10 times in 5 seconds (or...
7
by: Schmidty | last post by:
Okay...I have another 'newbie' question; I have a function that loads a page and the action is $_SERVER; In the form that is in a function(method?) within a class a variable is passed back to...
1
by: red | last post by:
I have a page with a div which is filled with content from a PHP script via javascript and innerhtml. Sometimes, depending on the results of the PHP script, I want to to reload the entire page,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.