This post originated from an RSS feed registered with .NET Buzz
by Scott Hanselman.
Original Post: dasMonthView - dasBlog now includes a complete Year View...and I'm spent.
Feed Title: Scott Hanselman's ComputerZen.com
Feed URL: http://radio-weblogs.com/0106747/rss.xml
Feed Description: Scott Hanselman's ComputerZen.com is a .NET/WebServices/XML Weblog. I offer details of obscurities (internals of ASP.NET, WebServices, XML, etc) and best practices from real world scenarios.
I'm sitting here in the WS Interop Day tinkering with this
dasBlog MonthView I was doing. I've added a view that displays your
blog (item titles) in a calendar for a year.
Do check it out.
I'll give it to Omar this
week and we'll get it into the source tree ASAP if folks dig it.
Should work but not tested: This page adds no new Resource strings and uses Invariant
dates in the QueryString so the Calendar(s) should render in multiple languages (and
possibly other calendar systems, such as Thai Bhuddist, as I make no assumptions as
to how many months are in a year, etc.) Perhaps some attention to VaryByHeaders="Accept-Language"
may be needed.
This is a ridiculously expensive page, second only to Search, so it includes Poorman's
caching for 15 minutes. <%@ OutputCache Duration="900" VaryByParam="*" %>
Certainly change this value to taste. Arguably it should STAY cached until the
cache is explicitly invalidated. I think there's some stuff in dasBlog to do
that, I just didn't going looking for it.
I output the time the page was rendered at the TOP of the page (rather than the standard
dasBlog rendered footer) just cause it's nice to know when these things get built.
Clicking on the Weblog Calendar view takes you to MonthView.aspx without any QueryString
parameters. This shows you the entries for the current month. From here
you can go forward and backward with the Next/Prev buttons. This will be MonthView.aspx?month=YYYY-MM.
Clicking on a Year number at the top of the page will take you to a page with all
the months filled out. This is MonthView?year=YYYY.