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

How do you measure the size of a page delivered to the browser (and the Viewstate)

Is there a good way to measure the size of a page delivered to the browser?
Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.

1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)
--
Joe Fallon


Nov 19 '05 #1
5 1371
Turn Tracing on. The trace will actually tell you the size of the ViewState
and even how much the individual controls take up. There are add-ins that
will watch the http flow that can tell you how many bites are transferred
for a specific action, which gives an excellent real view of what's going
on. I think one of them is for IE and called iewatch and is at
www.iewatch.com.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl...
Is there a good way to measure the size of a page delivered to the
browser?
Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the
number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.

1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)
--
Joe Fallon

Nov 19 '05 #2
its accurate (doesn't include headers though). firefox is easier.

-- bruce (sqlwork.com)

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl...
Is there a good way to measure the size of a page delivered to the
browser?
Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the
number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.

1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)
--
Joe Fallon

Nov 19 '05 #3
You can enable tracing by setting <%@ Page Trace=true %>. There's a section
that shows the render size and ViewState size. I don't know if there's an
API for this info though.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Is there a good way to measure the size of a page delivered to the
browser? Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the
number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.
1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)


Nov 19 '05 #4

"Bruce Barker" <br******************@safeco.com> wrote in message
news:Ow**************@TK2MSFTNGP14.phx.gbl...
its accurate (doesn't include headers though). firefox is easier.

-- bruce (sqlwork.com)

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl...
Is there a good way to measure the size of a page delivered to the
browser?
Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the
number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.

1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)
--
Joe Fallon



It's not accurate if you include images, stylesheets, videos, et cetera.
When you measure it that way, all you are measuring is the html of the
single page that is being received.

To really view the # of bytes, you'll need an external tool, or addin, that
would do this. Ethereal is one that comes to mind that shows you exactly,
byte-to-byte of what is being sent and received between the two machines.

Mythran

Nov 19 '05 #5
Thanks to all for the feedback.
Tracing it is.
--
Joe Fallon

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
You can enable tracing by setting <%@ Page Trace=true %>. There's a
section that shows the render size and ViewState size. I don't know if
there's an API for this info though.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Is there a good way to measure the size of a page delivered to the
browser? Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the
number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.
1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)


Nov 19 '05 #6

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

Similar topics

2
by: Bond | last post by:
Hi! I'd like to measure the performance of my web page. I'd like to set a timer on the page to start when a user clicks on a link, or submit... anything where the browser requests a page from the...
3
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses and outputs the values in the arraylist items to a...
2
by: Mike | last post by:
hi to all does any body know or receive this message before and how i can repare this: The viewstate is invalid for this page and might be corrupted. thank's Mike
5
by: praveen | last post by:
Hello Folks; I am working in ASP.NET application. I would like to know how much characters ( OR How much Size?) I can keep in View State variable. I want the limitation in its size. Is there any...
6
by: MattC | last post by:
I used a trace tool (YATT) to see the size of my pages coming down the network. The page sizes were ok coming in at about 3K per page, but I noticed the bytes out column was 20K. Some of my users...
2
by: darrel | last post by:
I have a page that hits a database, and then builds a table on the codebehind size using a string builder. It's a hefty, complex table. As such, it's a bit large...however, I was a bit shocked...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
9
by: Alexander van Doormalen | last post by:
I have a situation that user controls are dynamically loaded within a page. To know which control to 're-add' to the page I saved the control path in the ViewState. This Control is added using...
4
by: Dan | last post by:
Hi, i'm not sure to understand the difference between refreshing the pagina by clicking on 'refresh' in the browser and a postback. What i think it is: Suppose a page with a form containing a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.