Wednesday, October 8, 2014

What if an asp:ListView is empty? Specify what should happen with EmptyDataTemplate.

Like so, immediately inside the ListView's tag:

<EmptyDataTemplate>
   <div class="whatever">
      No Results Found
   </div>
</EmptyDataTemplate>

No comments:

Post a Comment