title: Hide ascx markup based on condition
body: <p>I have some small markup in an ascx, for example this simple a href, like:</p>
  
  <pre><code>if (siteUrl) {
      &lt;a href="&lt;%= siteUrl %&gt;"&gt; &lt;%= Message here %&gt; &lt;/a&gt; 
  }
   // otherwise don't display Url and message
  </code></pre>
  
  <p>(that I want to hide if a variable in the code behind file is null.)
  Obviously the code above is an attempt and needs adjusting to work in ascx.</p>
  
  <p>What is a good way to do this? Is there a way for example to put the markup in some sort of placeholder in the ascx and make that visible on condition? Syntax tips appreciated. Thanks a bunch. </p>