ASP.NET Calendar - Tutorial - DatePickerMode

To set the calendar into date picker mode, simply set

DatePickerMode = "true"

You can also specify the textbox ID where you wish to put the formatted date:

TextBoxId = "myTextBoxID"
    Select date <ASP:TextBox runat="server" ID="txtDate"></ASP:TextBox>

<obout:Calendar runat="server"
     DatePickerMode="true"
     TextBoxId="txtDate">
</obout:Calendar>

To set a different date picker icon, use DatePickerImagePath property:

<ASP:TextBox runat="server" ID="txtDate"></ASP:TextBox>

<obout:Calendar runat="server"
     DatePickerMode="true"
     TextBoxId="txtDate"
     DatePickerImagePath="calendar/styles/icon2.gif">
</obout:Calendar>

See also

You can link two calendars together to select a date range. See date range tutorial.

"Thanks for the response. Your company may have the best software customer service I've ever worked with...."

Bill Jacob
The Huntington National Bank

Random testimonial   All testimonials