Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 402
  • Last Modified:

Determine the document size using the webbrowser control

I have a winforms application that has a browser control on it. I am using this winforms to measure how long it takes to download a page, which works great. Now I would like to measure the byte size of the page. Is there a property of the webbrowser control that would allow me to find this out?
0
brokeMyLegBiking
Asked:
brokeMyLegBiking
  • 2
1 Solution
 
Bob LearnedCommented:
Try WebBrowser.DocumentText.Length.

Bob
0
 
brokeMyLegBikingAuthor Commented:
ok, great, thanks. I notice that that accounts for the size of the HTML page, but not for images contained on the page. Any idea how to get the size of the images?

-Joseph
0
 
Bob LearnedCommented:
You would have to download all the images to find that information out.

Bob
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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now