12.3. Date Picker
The DatePicker control renders a text box where users can enter the selected date and a button that shows a calendar for a visual date selection (this calendar is created on the client). The following examples will show you the functionality of DatePicker.
12.3.1. Implementing Date Ranges and the ShowButton Property
The properties MinDate and MaxDate are exposed for the DatePicker in the same way they are for the Calendar. They provide a means to define a range of allowed dates. The ShowButton property defines whether the calendar button will be shown. Listing 12-5 shows you how to implement a date range and to display or hide the ShowButton. See the end result in Figure 12-5.