The Artima Developer Community
Sponsored Link

C# Answers Forum
Get www site ( Screen Scrapes ) faster??? -= .NET C# / VB.NET =-

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
giciorek

Posts: 16
Nickname: gicio
Registered: Dec, 2002

Get www site ( Screen Scrapes ) faster??? -= .NET C# / VB.NET =- Posted: Nov 1, 2004 3:13 PM
Reply to this message Reply
Advertisement
Hi!!

I have some code that get the contant of a site and display it...
it's a windows form application....

but it's too slow ( BTW: my internet connection isn't slow ;) )

here is my code:


textBox1.Text = String.Empty;

WebClient currentWebClient = new WebClient();

string strURL = _txtSiteUrl.Text.Trim();

byte[] aRequestedHTML;

aRequestedHTML = currentWebClient.DownloadData( strURL );

UTF8Encoding currentUTF8Encoding = new UTF8Encoding();

string strRequestedHTML;

strRequestedHTML = currentUTF8Encoding.GetString( aRequestedHTML );

textBox1.Text = strRequestedHTML;




the code problem is this part:


aRequestedHTML = currentWebClient.DownloadData( strURL );



What can I do to get a better performance?




Kind Regards,

gicio

Topic: A Tale of Two Cities Previous Topic   Next Topic Topic: String array declaration

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use