In my template file, I have HTML that surround my ContentPane. I would like to add a conditional around this HTML, so that the HTML does not show if the ContentPane is empty.
I've tried writing something like this in my .ascx file, but it does not work:
<% if (ContentPane.Visible == true) { %>
<div class="wrapper">
<div id="ContentPane" runat="server"></div>
</div>
<% } %>
Any help is appreciated. Thanks!