title: HTML Agility Pack get all anchors' href attributes on page
body: <p>I am trying to add links extracted from an HTML file to a <code>CheckBoxList</code> (<code>cbl_items</code>).</p>
  
  <p>It works so far but instead of the link, the item's name is displayed as HtmlAgilityPack.HtmlNode.
  I tried using <code>DocumentElement</code> instead of <code>Node</code> but it said that it does not exist or similar.</p>
  
  <p>How can I get the URL to be displayed instead of HtmlAgilityPack.HtmlNode?</p>
  
  <p>This is what I've tried so far:</p>
  
  <pre><code>HtmlWeb hw = new HtmlWeb();
  HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
  doc = hw.Load(tb_url.Text);
  foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//a[@href]"))
  {
    cbl_items.Items.Add(link);
  }
  </code></pre>