Adding Controls to Controls in codebehind
<p>I'm trying to add a span, inside an anchor, inside a dd tag. for some reason this:</p>

<pre><code>protected Control MakeDD() {
    var dd = new HtmlGenericControl("dd");
    var link = new HtmlGenericControl("a");
    var span = new HtmlGenericControl("span");

    link.Controls.Add(span);
    dd.Controls.Add(link);
    return dd;
}
</code></pre>

<p>only generates </p>

<pre><code>&lt;dd&gt;&lt;a&gt;&lt;/a&gt;&lt;/dd&gt;
</code></pre>

<p>instead of</p>

<pre><code>&lt;dd&gt;&lt;a&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/dd&gt;
</code></pre>

<p>how do I add controls to a control, then add that control to another control?</p>
