title: Build HtmlGenericControl from a string of full html
body: <p>I want to be able to add attributes to a string of html without having to build a parser to handle the html. In one specific case, I want to be able to extract the id of the html or insert an id to the html server side. </p>
  
  <p>Say I have: </p>
  
  <pre><code>string stringofhtml = "&lt;img src=\"someimage.png\" alt=\"the image\" /&gt;";
  </code></pre>
  
  <p>I would like to be able to do something like:</p>
  
  <pre><code>HtmlGenericControl htmlcontrol = new HtmlGenericControl(stringofhtml);
  htmlcontrol.Attributes["id'] = "newid";
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>int theid = htmlcontrol.Attributes["id"];
  </code></pre>
  
  <p>This is just a way that I can access/add attributes of the html strings that I have.</p>