title: HTMLAgilityPack - You need to set UseIdAttribute property to true to enable this feature
body: <p>I am trying to use HTMLAgilityPack with VS2008/.Net 3.5. I get this error even if I set the OptionUseIdAttribute to true, though it is supposed to be true by default.</p>
  
  <pre><code>Error Message:
   You need to set UseIdAttribute property to true to enable this feature
  
  Stack Trace:
      at HtmlAgilityPack.HtmlDocument.GetElementbyId(String id)
  </code></pre>
  
  <p>I tried version 1.4.6 and 1.4.0, neither worked.</p>
  
  <p>Version 1.4.6 - Net20/HtmlAgilityPack.dll</p>
  
  <p>Version 1.4.0 - Net20/HtmlAgilityPack.dll</p>
  
  <p>This is the code,</p>
  
  <pre><code>    HtmlWeb web = new HtmlWeb();
      HtmlDocument doc = web.Load(url);
      HtmlNode table = doc.GetElementbyId("tblThreads");
  </code></pre>
  
  <p>This didn't work either,</p>
  
  <pre><code>    HtmlWeb web = new HtmlWeb();
      HtmlDocument doc = new HtmlDocument { OptionUseIdAttribute = true };
      doc = web.Load(url);
      HtmlNode table = doc.GetElementbyId("tblThreads");
  </code></pre>
  
  <p>How can I fix this issue?
  Thanks.</p>