This is fairly simple and I do something similar in one of my current applications.
Goto
www.summitmetroparks.org and on the index of the site you will see a calendar with various days highlighted in an off orange color that represent dates that events are occuring (dates with no events are simply white). Is this the type of functionality you are trying to recreate?
To achieve this, I handle 2 events that the calendar control exposes: DayRender and SelectionChanged.
DayRender occurs every time a day is rendered to the calendar (this event will fire at LEAST 28 times)
SelectionChanged occurs when you click on a specific date.
My psuedo-code logic is something like this:
DayRender
If current Day is not part of the other month then
Return data from a database if the current day has an associated event.
If there is associated data change the BackColor of the cell to reflect this.
end if
SelectionChanged
Response.Redirect to a page that accepts a date as a query string parameter to display the current event.
Note that a calendar can render dates from a precceding and succeding month so that is why i check to see if the date is part of a different month in my DayRender event.
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========