title: ASP.NET control with CSS visibility:hidden, not being shown on Control.Visible = true
body: <p>I have a few labels on my page with a class of 'error', the rule for .error is:</p>
  
  <pre><code>.error {
      color:Red;
      visibility:hidden    
  }
  </code></pre>
  
  <p>The markup for the labels is:</p>
  
  <pre><code>&lt;asp:Label ID="lblError" runat="server" CssClass="error" &gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>I then set the .Text property of the error label in my code behind.<br>
  If I use <code>lblError.Visible = True</code> when I set the text, the label isn't shown.  Any ideas why that would be?  I'm maybe wrong here but I thought that setting .Visible was like setting the visibility style?</p>