kapcreations
asked on
datareader -> custom html table
say I run a query which has 18 rows returned, how to I output the returned data to a table using the following layout of the data? I only want 3 columns.
==========
| 1| 7|13|
==========
| 2| 8|14|
==========
| 3| 9|15|
==========
| 4|10|16|
==========
| 5|11|17|
==========
| 6|12|18|
==========
additionally, say there were 19 records returned, how could I dynamically add the 19th record while still using 3 colums?
==========
| 1| 8|15|
==========
| 2| 9|16|
==========
| 3| 10|17|
==========
| 4|11|18|
==========
| 5|12|19|
==========
| 6|13| - |
==========
| 7|14| - |
==========
If I were using classic asp I could do it rather quickly. I know I need to use mod, but I am unsure of the syntax in vb.net to accomplish this task to display the output in this format.
Basically I am looking for someone to help me put the pieces together, with source code.
==========
| 1| 7|13|
==========
| 2| 8|14|
==========
| 3| 9|15|
==========
| 4|10|16|
==========
| 5|11|17|
==========
| 6|12|18|
==========
additionally, say there were 19 records returned, how could I dynamically add the 19th record while still using 3 colums?
==========
| 1| 8|15|
==========
| 2| 9|16|
==========
| 3| 10|17|
==========
| 4|11|18|
==========
| 5|12|19|
==========
| 6|13| - |
==========
| 7|14| - |
==========
If I were using classic asp I could do it rather quickly. I know I need to use mod, but I am unsure of the syntax in vb.net to accomplish this task to display the output in this format.
Basically I am looking for someone to help me put the pieces together, with source code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad I could help, if you need any further help with this let me know.
Geoff.
Geoff.
ASKER