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

后端 未结 5 1584
长情又很酷
长情又很酷 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:43

    I would create a Web User Control (.ascx) that contains your header section, a [child] repeater control, and a footer section. You can put all your logic in that custom control.

提交回复
热议问题