K
Ken Fine
Using ASP, I want to display a series of records grouped by nested years and
months, e.g.:
2004
December
Record1
Record2
Record3
November
Record4
Record5
...
...
2003
This would be based off of a date value stored with each item in the
recordset.
Does someone have a snip of nested looping script to break this down by
date in this manner?
Extra credit: Ultimately what I want to do with this is create a folding
"tree" which which people can expand and contract the year headers. This
would save some beating on the database server. The following script could
be adapted to add persistence:
http://www.dynamicdrive.com/dynamicindex1/navigate1.htm
If someone can at least help me build the uncollapsed tree of records, that
will get me started.
Thanks,
-KF
months, e.g.:
2004
December
Record1
Record2
Record3
November
Record4
Record5
...
...
2003
This would be based off of a date value stored with each item in the
recordset.
Does someone have a snip of nested looping script to break this down by
date in this manner?
Extra credit: Ultimately what I want to do with this is create a folding
"tree" which which people can expand and contract the year headers. This
would save some beating on the database server. The following script could
be adapted to add persistence:
http://www.dynamicdrive.com/dynamicindex1/navigate1.htm
If someone can at least help me build the uncollapsed tree of records, that
will get me started.
Thanks,
-KF