title: Hide unnecessary space when validation error messages are not firing in ASP page
body: <p>I want to validate some text boxes in my ASP.NET page using ASP required field validation. And I want to display that error message in top of the page.</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;&lt;td colspan='2'&gt;&lt;b&gt; User Input&lt;/b&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td colspan='2'&gt;
              &lt;%--input validations--%&gt;
              &lt;asp:RegularExpressionValidator ID="regexpName1" runat="server"     
                  ErrorMessage="This expression does not validate." 
                  ControlToValidate="TextBox_adTitle"     
                  ValidationExpression="^[a-zA-Z'.\s]{1,40}$" /&gt;
              &lt;br /&gt;
              &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                  ControlToValidate="TextBox_1" ErrorMessage="RequiredFieldValidator"&gt;&lt;/asp:RequiredFieldValidator&gt;
          &lt;br /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;
          &lt;asp:Label ID="Label_name" runat="server" Text="Seller Name * "&gt;&lt;/asp:Label&gt;
          &lt;/td&gt;
          &lt;td&gt;
               &lt;asp:TextBox ID="TextBox_1" runat="server" ReadOnly="True" &gt;&lt;/asp:TextBox&gt;        
          &lt;/td&gt;
      &lt;/tr&gt;
  
  ...
  </code></pre>
  
  <p>This is working fine. However, the first table row is keeping its space even error messages are not displaying on it. This will cause the UI to look bad on the page since unnecessary space is there when the page loads.</p>
  
  <p>How can I hide the space of the first row (validation's error messages row) while the page is loading and when there is no validation error?</p>