Displaying a Calendar

The Calendar control enables you to display a calendar. You can use the calendar as a date picker or to display a list of upcoming events.

The page in Listing 4.7 displays a simple calendar with the Calendar control (see Figure 4.4).

Figure 4.4. Displaying a calendar with the Calendar control.

image

Listing 4.7. ShowCalendar.aspx

images

The Calendar control supports the following properties (this is not a complete list):

DayNameFormat Enables you to specify the appearance of the days of the week. Possible values are FirstLetter ...

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.