title: How do I find the text within a div in the source of a web page using C#
body: <p>How can I get the <code>HTML</code> code from a website, save it, and find some text by using a <code>LINQ</code> expression?</p>
  <p>I'm using the following code to get the source of a web page:</p>
  <pre class="lang-cs prettyprint-override"><code>
  public static String code(string Url)
  {
      HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(Url);
      myRequest.Method = &quot;GET&quot;;
      WebResponse myResponse = myRequest.GetResponse();
      StreamReader sr = new StreamReader(myResponse.GetResponseStream(),
          System.Text.Encoding.UTF8);
      string result = sr.ReadToEnd();
      sr.Close();
      myResponse.Close();
      
      return result;
  }
  </code></pre>
  <p>How do I find the text within a div in the source of the web page?</p>