How can I create a custom Repeater that displays Header, Footer based on properties?

后端 未结 5 1582
长情又很酷
长情又很酷 2021-02-09 07:19

I want to create a Repeater that displays the header/footer based on properties, only if the DataSource is empty.

public class Repeater : System.Web         


        
5条回答
  •  粉色の甜心
    2021-02-09 07:37

    Use ListView instead of Repeater. It already contains EmptyDataTemplate and EmptyItemTemplate elements so you don't need to do anything :)

提交回复
热议问题