Showing events with the ASP.NET calendar control (page 1 of 3)
Events and meetings, there is nothing like showing these in a calendar. With ASP.NET, presenting a calendar control with lots of built-in functionality can be as easy as one line code.
The ASP.NET calendar control is highly customisable and the one shown below shows events which are stored in a SQL Server database. It has the following features:
- Clear variations in today's date, selected date and meeting dates
- Only relevant dates are links (clickable)
- The tool tip property is used effectively: hover with the mouse over an event date to find out what's on!
- Fast loading time: a calendar like this is typically shown on a homepage. Therefore all dates and events are read from an application array variable, which is much more efficient than reading from a database all the time. Only when the user clicks on a date, a database connection is made.
- When the calendar fires up, always the first upcoming event is mentioned, which is a nice way to give your website an up to date feel.
- Event descriptions in the past are mentioned in light grey, rather than black.
Of course events can be added / adjusted in an administration area (check out page 2).
