|
Subject:
|
Displaying data in a table
|
|
Posted By:
|
Mike707
|
Post Date:
|
4/18/2006 7:52:53 AM
|
I'm trying to display data in rows rather than columns in a table - can this be done? In other words, the recordset is displayed in the table with the records running down the page rather than across - like this: FieldA FieldA FieldA etc etc FieldB FieldB FieldB etc etc FieldC FieldC FieldC etc etc
I'm using DW MX 2004. Can this be done?
Mike
|
|
Reply By:
|
Imar
|
Reply Date:
|
4/19/2006 1:43:03 PM
|
Hi Mike,
Yeah, this can be done, but not with DW MX 2004 directly. You'll need to some hand coding. Basically, you'll need to loop through the recordset and write out a <td> for each record.
You also need to write out a <tr> every three records. Inside the loop, you can keep track of the number of records. You can then use the Mod operator to determine whether you need to write out a </tr> and start a new one.
HtH
Imar --------------------------------------- Imar Spaanjaars Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004 While typing this post, I was listening to: LAX by Xzibit (Track 2 from the album: Weapons Of Mass Destruction) What's This?
|