asp.netdatarepeater

ASP.NET Repeater control: How not to show the header template if the datasoure has zero elements?


I want my header and footer HTML not to bem written in the case that the datasource has no items.

How do I do that?


Solution

  • I would recommend setting the Repeater visibility to false if the datasource has no items.