title: How to Read the Content of a Remote Web Page Tag by Tag in asp.net using c#?
body: <p>I want to read the content of the Remote Webpage in asp.net using C#. I have read it using the following code in asp.net.</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
      {
          string TheUrl = "http://www.demosite.com/Default.aspx";
          string response = GetHtmlPage(TheUrl);
          Response.Write(response);
  
      }
  static string GetHtmlPage(string strURL)
      {
  
          String strResult;
          WebResponse objResponse;
          WebRequest objRequest = HttpWebRequest.Create(strURL);
          objResponse = objRequest.GetResponse();
          using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
          {
              strResult = sr.ReadToEnd();
              sr.Close();
          }
          return strResult;
      }
  </code></pre>
  
  <p>Here i get the whole content of the Remote WebPage now i want read the content Tag by tag and get Only the Content of it. Is it possible?</p>
  
  <p>Help Appreciated...!
  Thanks in advance!</p>