I want to create a Repeater that displays the header/footer based on properties, only if the DataSource is empty.
DataSource
public class Repeater : System.Web
Use ListView instead of Repeater. It already contains EmptyDataTemplate and EmptyItemTemplate elements so you don't need to do anything :)