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
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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