S
shapper
Hello,
I am getting a list of months and years and the number of posts in
each month from a database:
SELECT YEAR(PublishedDate), MONTH(PublishedDate), COUNT(*) AS POSTS
FROM Table
GROUP BY YEAR(PublishedDate), MONTH(PublishedDate)
How can I display it in a TreeView. Something as follows:
2007
March(20)
February(15)
January(10)
2006
December(12)
November(15)
...
Each month should also be a link as follows:
Page.aspx?month=1/month/year
Thanks,
Miguel
I am getting a list of months and years and the number of posts in
each month from a database:
SELECT YEAR(PublishedDate), MONTH(PublishedDate), COUNT(*) AS POSTS
FROM Table
GROUP BY YEAR(PublishedDate), MONTH(PublishedDate)
How can I display it in a TreeView. Something as follows:
2007
March(20)
February(15)
January(10)
2006
December(12)
November(15)
...
Each month should also be a link as follows:
Page.aspx?month=1/month/year
Thanks,
Miguel