Tuesday, March 27, 2012

List out data like a menu book

Hi

I want to list out data from access database just like resturant's menu book.
So I will split the screen in two pages just like a book.
And there is 3 things which I am going to list out:
* Name of the male
* Price
*Description of the meal

Shall I use datalist? Or shall I list it out in table (while-statement)?
Any idea how can I do it?

Thanks
MowLook into the repeater controls. You can specify horizontal or verticle repeating. The alternative is to just use a two-cell table, one cell for each page.

if you want any decent formatting dont use a datalist, use html.

I'd suggest 3 tables.
1 outside table, that covers the whole screen. 2 Inside tables, side by side in two TD tags of table 1. This will give you the nice layout

<table>
<tr>
<td>
<table><tr><td>left</td></tr></table>
</td>
<td>
<table><tr><td>right</td></tr></table>
</td>
</tr>
</table>

You'll have to play with the sizes, classes, etc, to get whatever look you want but I think this will get you the results you are interested in.

0 comments:

Post a Comment