calendar control

How to Highlight the Day in the ASP.NET Calendar Control with the SelectedDate Property

When you add an ASP.NET Calendar control to a page that might support edit capabilities, you may want to show the existing value in the Calendar control on post-backs. If you look into this, you'll probably notice the SelectedDate property of the control. This sets the date that is is selected in the control. So doing something like this, you might expect that the control would show the day highlighted automatically:

// set the selected date of the calendar control