title: Modify html output at server side in ASP.NET
body: <p>A third-party's webcontrol generates the following code to display itself:</p>
  
  <pre><code>&lt;div id="uwg"&gt;
      &lt;input type="checkbox" /&gt;
      &lt;div&gt;blah-blah-blah&lt;/div&gt;
      &lt;input type="checkbox" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is it possible to change it to</p>
  
  <pre><code>&lt;div id="uwg"&gt;
      &lt;input type="checkbox" disabled checked /&gt;
      &lt;div&gt;blah-blah-blah&lt;/div&gt;
      &lt;input type="checkbox" disabled checked /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When we click on</p>
  
  <pre><code>&lt;asp:CheckBox id="chk_CheckAll" runat="server" AutoPostBack="true" /&gt;
  </code></pre>
  
  <p>located on the same page?</p>
  
  <p>We need to do it at server side (in ASP.NET).</p>
  
  <p>That third-party's control does not give interface for this, so the only possibility is to work with html output. Which page event should I handle (if any)? Also, is there some equivalent to DOM model, or I need to work with output as string?</p>