Solved

Determining the length of time that it takes for a web page to load completely; using C# and .NET framework?

Posted on 2004-10-08
6
173 Views
Last Modified: 2010-04-15
What's the best way to achieve this: "Determine the length of time that it takes for a web page to load completely; using C# and .NET framework?" Is it possible to determine how long DNS resolution took, in the process?

Thanks!!
0
Comment
Question by:erin010
6 Comments
 
LVL 8

Expert Comment

by:Razzie_
ID: 12265679
Hi erin010,

This MSDN article will cover a lot of what you need to know for measuring execution time: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto09.asp

HTH,

Razzie
0
 
LVL 10

Expert Comment

by:123654789987
ID: 12275422
U can use the TimeSpan function to achieve this functionality. U can also make use of Trace statements in the form_load function.
0
 

Author Comment

by:erin010
ID: 12282485
I think I did not present this question correctly.  I want to know how to download a complete web page (with all the pictures, and any other content) in a desktop C# application. There should be a way to track'start of page download' and 'end of page download'. Thanks!
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 18

Accepted Solution

by:
armoghan earned 125 total points
ID: 12295603
If you are using MSHTML AxBrowser to download the page, it has document_complete event which you can use to see how much time it took to complete the HTML document download with all the Pics etc
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12295608
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12335566
Thanx for accepting :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question