repeater header/footer question

D

Dunc

I've got a repeater control on my page; I've put the <table> and the header
rows in the header and the </table> in the footer.
I would've thought when there were no rows in the datasource, the header and
footer wouldn't be displayed, and I could display a "friendly" error
message, however this isn't the case.

Is there any simple way to not display the header and footer when there are
no rows present, without putting them outside the repeater and enclosing
them in a panel?

Thanks in advance,

Duncan
 
P

Philip Rieck

When setting the datasource, if you have no rows set the visible property of
the repeater to false.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top