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
172 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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 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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

786 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