S
simon
I get from database something like this:
DAY HOUR PRICE
---------------------------------------------
MONDAY 10 100
MONDAY 11 120
MONDAY 12 130
MONDAY 13 140
MONDAY 14 150
TUESDAY 11 90
TUESDAY 13 100
TUESDAY 15 110
TUESDAY 17 120
TUESDAY 18 130
TUESDAY 19 140
.....................
Now, I would like to show this on the page like this:
TIME AND PRICE FOR MONDAY
--------------------------------------------
Time:10 Price:100 DELETE button
Time:11 Price:120 DELETE button
Time:12 Price:130 DELETE button
Time:13 Price:140 DELETE button
Time:14 Price:150 DELETE button
TIME AND PRICE FOR TUESDAY
--------------------------------------------
Time:11 Price: 90 DELETE button
Time:13 Price:100 DELETE button
Time:15 Price:110 DELETE button
Time:17 Price:120 DELETE button
Time:18 Price:130 DELETE button
Time:19 Price:140 DELETE button
and so on.
When user clicks DELETE button, the row is removed and deleted from the
database.
What is the best way to do this?
Data grid or data repeater?
Any example? I don't know how to construct it. In asp it was easy with
response.write method and recordset
Thank you,
S
DAY HOUR PRICE
---------------------------------------------
MONDAY 10 100
MONDAY 11 120
MONDAY 12 130
MONDAY 13 140
MONDAY 14 150
TUESDAY 11 90
TUESDAY 13 100
TUESDAY 15 110
TUESDAY 17 120
TUESDAY 18 130
TUESDAY 19 140
.....................
Now, I would like to show this on the page like this:
TIME AND PRICE FOR MONDAY
--------------------------------------------
Time:10 Price:100 DELETE button
Time:11 Price:120 DELETE button
Time:12 Price:130 DELETE button
Time:13 Price:140 DELETE button
Time:14 Price:150 DELETE button
TIME AND PRICE FOR TUESDAY
--------------------------------------------
Time:11 Price: 90 DELETE button
Time:13 Price:100 DELETE button
Time:15 Price:110 DELETE button
Time:17 Price:120 DELETE button
Time:18 Price:130 DELETE button
Time:19 Price:140 DELETE button
and so on.
When user clicks DELETE button, the row is removed and deleted from the
database.
What is the best way to do this?
Data grid or data repeater?
Any example? I don't know how to construct it. In asp it was easy with
response.write method and recordset
Thank you,
S