Reading Response From URL in Asp.net(C#)

  1. using System.Net;  
  2.    
  3. string str = "Here Type URL";  
  4.    
  5. using (WebClient webClient = new System.Net.WebClient())  
  6. {   
  7.    WebClient objWebClient = new WebClient();  
  8.    var strcontent = objWebClient.DownloadString(str);  
  9.    string valueOriginal = Convert.ToString(strcontent);  
  10.    Console.WriteLine(strcontent);   
  11. }