Setting UL to be visible from code-behind not working
<p>This is weird.  It's got to be something stupid.</p>

<p>I have the following in my page (it's located in a <strong>user control</strong> in my page)</p>

<pre><code>&lt;div id="notifications" class="notificationsContainer" runat="server"&gt;
    &lt;ul id="notificationsList" visible="false" runat="server"&gt;&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>And the last thing that's run in the .ascx.cs's Page_Load is this line of code:</p>

<pre><code>    if (!string.IsNullOrEmpty(notificationsList.InnerHtml))
        notificationsList.Visible = true;
</code></pre>

<p>it IS hitting the line notificationsList.Visible = true; but for whatever strange reason, the &lt;ul&gt; is still not visible.  I've stepped through this and I don't see any reason why such as other code conflicting, etc.</p>

<p>Here's the full method that is last to be called in Page_Load:</p>

<pre><code>private void SetAndShowNotifications()
{
    notifications.Visible = false;

    SetItemRemovedNotification();

    if (!string.IsNullOrEmpty(notificationsList.InnerHtml))
        notificationsList.Visible = true;
}
</code></pre>

<p>I just can't see it by stepping through as to why the hell this would not stick!</p>
