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

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?

Who is Participating?
armoghanConnect With a Mentor Commented:
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
Hi erin010,

This MSDN article will cover a lot of what you need to know for measuring execution time:


U can use the TimeSpan function to achieve this functionality. U can also make use of Trace statements in the form_load function.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

erin010Author Commented:
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!
Thanx for accepting :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.