Using VS 2008, I have a Repeater control:
You could workaround the fact that Repeater
does not support a inbuilt way to accomplish what you are doing by using the FooterTemplate
in conjunction with the OnItemDataBound
event and showing the footer only when the data source returns no items.
Examples on how you can do this can be found at:
Handling Empty Data in an ASP.NET Repeater control
How to show Empty Template in ASP.NET Repeater control?