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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top