Hyperlink control not showing within ContentTemplate in ASP.NET
<pre><code>&lt;ContentTemplate&gt;
        &lt;div class="detail_purchase_button"&gt;

            &lt;a class="commandbutton" href='/Courses?RestoreFilters=1'&gt;Return to Catalog&lt;/a&gt;
            &amp;nbsp;&amp;nbsp;
            &lt;%# linkAddToCart %&gt;

        &lt;/div&gt;
    &lt;/ContentTemplate&gt;

string url = "/Cart?AddItem={0}", DataItemID;
    linkAddToCart = new HyperLink();
    linkAddToCart.CssClass = "commandbutton";
    linkAddToCart.NavigateUrl = url;
    linkAddToCart.Text = "Add To Cart";
</code></pre>

<p>The button within the anchor tag shows up on the page. However, the Hyperlink button does not appear at all.
The second block of code is running in the Page_Load event (I will put it in a method after I get it to work) and is referencing a public Hyperlink field.</p>

<p>Thanks for any help.</p>
