2
shouts

Writing an Archive Calendar, Part 1

published 423 days, 15 hours, 12 minutes ago posted by beebee 424 days, 11 hours, 19 minutes ago
Monday, January 19, 2009 5:04:12 PM GMT Sunday, January 18, 2009 8:56:19 PM GMT

It's time to reveal all about that Archive Calendar I've been developing that now adorns my site. It's not quite done yet, but by the time I'll have it finished, this series of articles on how to write it will be too.

The first thing I did, before I got all embroiled in how to create a query and execute it to get a list of posts, and so on, was to make sure I knew how to create the calendar display. It's a basic HTML table, with a particular id, and the actual look and feel is provided by CSS.

We'll start off with a class I'm calling, for now, HtmlCalendar. It will have a Render() method that will return a string comprising the HTML markup for the month passed to the constructor. (Note I won't be showing absolutely all the code in this series, just the important stuff. I'll make the code available later on.)

category: ASP.NET | clicked: 0 | | source: blog.boyet.com | show counter code
tags: ASP.NET, CSS

No comments yet, be the first one to post comment.

To post your comment please login or signup