Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Get www site ( Screen Scrapes ) faster??? -= .NET C# / VB.NET =-


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

Reply
  #1 (permalink)  
Old 11-01-04, 05:54 PM
gicio gicio is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Question Get www site ( Screen Scrapes ) faster??? -= .NET C# / VB.NET =-

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:

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:

Code:
aRequestedHTML = currentWebClient.DownloadData( strURL );

What can I do to get a better performance?




Kind Regards,

gicio
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Top 10 Reasons for Developers to Use the .NET Framework 1.1 emaxian ASP.NET 0 05-23-04 11:34 PM


All times are GMT -5. The time now is 01:00 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.