Screen Scraping Web Forms Content with System.Net.WebClient(codebetter.com)

submitted by schalkvanwykschalkvanwyk(1335) 3 years, 8 months ago

Sometimes you may have the need for accessing html web content from within an application. Why would you need to do this? Well, suppose you need to have a Windows Service periodically render a page with dynamic content and attach it to an email. Your application would need a way to request and save the remote page. Perhaps you need to grab an image from a web camera and save it to a file or display it in a Picture Box within a Winforms application. This technique, often called “Screen Scraping” is simple (like so many other thing) with .NET. In fact, 4GuysFromRolla.com have a good article describing how to do just this: Screen Scrapes in ASP.NET. As they describe, with a few lines of code, you can request an Internet resource and work with it’s stream.

add a comment |category: |Views: 126

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story