title: how to hide a div if a Listview is empty in asp .net
body: <p>How should I hide the Attach div if the ListView2 is Empty.</p>
  
  <pre><code>&lt;div id="Attach" class="AttachHead col-lg-12"&gt;
                      &lt;h2&gt;
                          Attachments&lt;/h2&gt;
                  &lt;/div&gt;
  
  &lt;asp:ListView ID="ListView2" runat="server"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;a href='&lt;%# String.Format("Download.aspx?Title={0}",Container.DataItem) %&gt;' target="_blank"&gt;
                              &lt;asp:Label ID="attach" runat="Server" Text='&lt;%#Container.DataItem%&gt;' CssClass="col-lg-4" /&gt;
                          &lt;/a&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:ListView&gt;
  </code></pre>