C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Revenue Sharing | Talk to Us |



My Profile

Gifts

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




  • Read TATA Nano reviews.
    dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
    Are you waiting for engineering entrance result? Watch here for engineering entrance results.
    it outsourcing

    Contact Us    Privacy Policy    Terms Of Use