C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...







C# sample for retrieving html content from any websites



Retrieving html content from any URL



Download Sample .NET Project for this chapter


This chapter will teach you how to retrieve content of any website using .NET classes.

This chapter and the attached sample application demonstrates the usage of following .NET classes and methods:

  • System.Net.WebRequest() - Class to perform the web related operations.
  • System.Net.WebRequest.Create(url) - Create a web request.
  • System.Net.WebRequest.GetResponse() - Get the html content of the URL.
  • System.IO.StreamReader - Read from file.




  • Next Chapter: Application Configuration Files

  • Previous Chapter: C# sample for basic file operations

  • Tutorial Index



  • dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use