repeater control: conditional formatting

D

Digit24

Wondering if you can help.

I have a page that pulls a list of products from a database. These products
come in various formats which the data is sorted by, so I have a dataset
that contains 10 products, ordered by format.

I am using a repeater to display the products, but what I want to do is
display a header when the format is different to the previous product.

In classic ASP, I would simply do a check to see if the product formatis
different to the previous product and if so, add a table row with the header
in it.

How do I do this using a repeater control?
 

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

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top