Question about Repeater

  • Thread starter Thread starter laurence chang
  • Start date Start date
L

laurence chang

I'm using a repeater to display a query result from sql table. I bind
the repeater to a sqldatareader. I set repeater's template to a table. I
can display query result very well, but some time the query return
nothing, so I want add a condition for repeater, when query return null
I just display the head of table and give user a message. How can i
realize it? Thanks ahead.

Laurence
 
A Repeater control doesn't have columns. It has HTML and Controls in it. Put
the Repeater in a Panel, and your "Zero Records" message into another panel.
When you get nothing, make the other Panel visible, and the Repeater
invisible, and vice versa.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
Back
Top