Hi all,
I am using the below code to populate a DateInput when the user edits a record in a RadGrid so the Edit form is pre-populated with correct data. All is well until I try to Add a new record, because the ExpireDate variable is now NULL.
The Exception is:
An exception of type 'System.InvalidCastException' occurred in App_Web_xngshb9r.dll but was not handled in user code
Additional information: Specified cast is not valid.
And the code block (client-side):
<
telerik:RadDatePicker ID="RDP" runat="server" MinDate="01/01/1900" MaxDate="12/31/2100"
SelectedDate='<%# Eval("ExpireDate") %>' TabIndex="2" OnSelectedDateChanged="RDP_SelectedDateChanged">
</telerik:RadDatePicker>
Any help would be greatly appreciated!