Rendering a Calendar from a Database Table

You also can use the Calendar control to display events in a calendar. In this section, we build a simple schedule application that enables you to insert, update, and delete calendar entries. Each schedule entry is highlighted in a Calendar control (see Figure 4.7).

Figure 4.7. Displaying a calendar from a database.

image

The code for the schedule application is contained in Listing 4.10.

Listing 4.10. CalendarDatabase.aspx

images

The page in Listing 4.10 saves and loads entries from a SQL Express database ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.