title: ASP.NET UpdatePanel Hiding/Show row depending on Radiobutton
body: <p>This is the RadioButton</p>
  
  <pre><code>&lt;tr class="choose"&gt;
      &lt;td&gt;
          Are you a director or company secretary of this nonprofit?
      &lt;/td&gt;
      &lt;td&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"&gt;
              &lt;ContentTemplate&gt;
                  &lt;asp:RadioButtonList ID="isDirector" RepeatDirection="Horizontal" runat="server"
                      AutoPostBack="True" OnSelectedIndexChanged="isDirector_CheckedChanged"&gt;
                      &lt;asp:ListItem Text="Yes" Value="True" Selected&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text="No" Value="False"&gt;&lt;/asp:ListItem&gt;
                  &lt;/asp:RadioButtonList&gt;
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
          &lt;asp:RequiredFieldValidator ID="isDirectorCompleted" Display="None" runat="server"
              ErrorMessage="Are you company director/secretary must be selected." ControlToValidate="isDirector"&gt;&lt;/asp:RequiredFieldValidator&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Then this is the row im trying to hide</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel9" runat="server"&gt;
      &lt;ContentTemplate&gt;
          &lt;tr runat="server" id="test"&gt;
              &lt;td class="title"&gt;
                  Director First Name:
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="DirectorfirstNametxt" runat="server" MaxLength="100" CssClass="input"&gt;&lt;/asp:TextBox&gt;
                  &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator5" Display="None" runat="server"
                      ErrorMessage="Director First Name is required." ControlToValidate="DirectorfirstNametxt"&gt;&lt;/asp:RequiredFieldValidator&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>I basically want to hide/show the entire TR but basically it does nothing, and depending if use <code>updatemode="conditional"</code> it seems to work but adds an additional tr on top of screen.</p>
  
  <pre><code>protected void isDirector_CheckedChanged(object sender, EventArgs e)
  {
      if(isDirector.SelectedValue == "True")
      {
          test.Visible = false;
  
      }
      else
      {
          test.Visible = true;
  
      }
  }
  </code></pre>
  
  <p>But now working as I want to just hide/show that basic <code>&lt;tr runat="server" id="test"&gt;</code> and not add additional trs</p>
  
  <p>EDIT : Just dont understand why instead of hiding/showing the tr its leaving the existing one as is. And instead hiding/showing a complete different one.</p>