Use of a Repeater control in tricky situation

A

Alex

Hello .
I have the following situation :
let's say I have 2 tables : Orders , Customers ( the classic simple case
, eh ?)
Orders has a field CustomerId - which is of course a FK to ID field in
Customers

Now I have to display something like this in a report :
For a specific customers ( user selects them earlier - I can't know
ahead how much
customers will be selected .)
I have to show for each customer selected , a table with his orders .

example:

Customer Id : X
orderId |order name |quantity |product .
123 fdfs 2 fdfds
34 sdfd 5 gdfgfd
3 bh 9 jhgg

Customer Id : Y
orderId |order name |quantity |product .
54 fdsf 3 fdsf


The question is : Is there a way to do that with Repeater control .

I know I can just write a code to do that which just uses Response.Write of
tables ,
using the logic of creating table for each customer selected .
And I actually already wrote that code .

But I want to make a nicer solution of this - using Repeater.. or any other
control if possible .

Thanks
 

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
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top