title: Setting aspx table's visibility to true fails
body: <p>I'm puzzled here. I have a webform with 3 tables in it. I want to show/hide them according to certain conditions. It all works fine except in one situation.</p>
  
  <p>this is what I have:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="upGeneral" runat="server" &gt;
      &lt;ContentTemplate&gt;
  
          &lt;table id="tab1" runat="server" visible="true" width="100%"&gt;
             ...
          &lt;/table&gt;
          &lt;table id="tab2" runat="server" visible="false" width="100%"&gt;
             ...
          &lt;/table&gt;
          &lt;table id="tab3" runat="server" visible="false" width="100%"&gt;
             ...
          &lt;/table&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>then, I have a few buttons added to the page, and depending on which one is pressed, I'll change the table's visibility.
  My problem is that, under certain conditions, I'm changing tab3's visibility to true, and tab1 and tab2's to false, and while tab1 will have it's visibility set to false, tab3 will not have it's visibility set to true... sigh!</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (!Page.IsPostBack)
      {
          ...
          if (!editMode)
          {
              tab1.Visible = false;
              tab2.Visible = false;
              tab3.Visible = true;
          }
       }
  }
  </code></pre>
  
  <p>in debug mode, as I go through these instructions, tab3.visibile = true will not change tab3's property!
  Has this happened to you before? How did you solve it?</p>
  
  <p>Thanks a lot!</p>