title: Asp:Label is not shown when visible is set to true?
body: <p>I have a simple web form which has a couple list boxes and a search button.  When the button is clicked, it returns a DataSet.  If the dataset contains records, I set the asp:label which is initially set to false to true, but this is not happening.  If the dataset has records and the visible property is set to true, the label still does not show up.</p>
  
  <p>I have also tried putting the label and a couple other controls in an html table and setting a runat="server" attribute on the table and changing the visibility on that, but it does not show either.</p>
  
  <p>Here is aspx code:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
          &lt;asp:Label ID="lblSortBy" runat="server" Text="Sort By:" Visible="false"&gt;   
          &lt;/asp:Label&gt;
          &lt;asp:DropDownList
                          ID="ddlSortBy" 
                          runat="server" 
                          AutoPostBack="True" 
                          OnSelectedIndexChanged="ddlSortBy_SelectedIndexChanged"&gt;
          &lt;asp:ListItem Value="Gross"&gt;Gross&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="Population"&gt;Population&lt;/asp:ListItem&gt;
          &lt;/asp:DropDownList&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Here is simplified code behind when a button is clicked:</p>
  
  <pre><code>public void GetData()
  {
      DataView dv = GetReportData().DefaultView;
  
      if(dv.ToTable().Rows.Count &gt; 0)
       {
          lblSortBy.Visible = true;
       }
       else
       {
          lblSortBy.Visible = false;
       }
    }
  </code></pre>
  
  <p>I have a couple Update Panels around some ListBoxes and a GridView, but not the Label and Dropdown.  Would this cause an issue?</p>
  
  <p>I did a test, I set a label that was in an update panel to false if records were found and the label disappeared, so it is working if it is in an update panel.</p>