|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Read Selected Dates in the Calendar Web Server Control
The first example displays the currently selected day. The second example displays all selected dates, which might be a single day, a week, or a month.
Compiling the Code
This example requires:
A Web Forms page.
A Calendar control named
A Label control named
If only one day is selected, theproperty will get just one date. If a week or a month is selected, the property will get the first date from that collection.