asp.net showing literal on condition
<p>I have a literal in my master page and in the code behind, sometimes I populate it with data and sometimes not. The literal is in a div so that I can access its value in javascript. The mark-up looks like this:</p>

<pre><code>&lt;div id="Literal1"&gt;&lt;asp:literal .... ID="TheLiteral1" /&gt;&lt;/div&gt;
</code></pre>

<p>How can I rewrite this so that if I don't populate the literal, I don't render the div that contains the literal.</p>

<p>Thanks.</p>
