How should I hide the Attach div if the ListView2 is Empty.
<div id="Attach" class="AttachHead col-lg-12">
<h2>
Attachments</h2>
</div>
<asp:ListView ID="ListView2" runat="server">
<ItemTemplate>
<a href='<%# String.Format("Download.aspx?Title={0}",Container.DataItem) %>' target="_blank">
<asp:Label ID="attach" runat="Server" Text='<%#Container.DataItem%>' CssClass="col-lg-4" />
</a>
</ItemTemplate>
</asp:ListView>
visible=false. Or are you asking just particular index of a list ?