This is a migrated thread and some comments may be shown as answers.

[Solved] Datetimepicker throws unhandled exception on invalid date

1 Answer 18 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kunal
Top achievements
Rank 1
Kunal asked on 25 May 2011, 09:30 PM
Hi,

I am using the telerik datetime picker to select a date on form. If user types an invalid date and submits the partial view, it fails on rendering the the return partial view with exception "The parameter conversion from type 'System.String' to type 'System.DateTime' failed with inner exception "String was not recognized as a valid DateTime". Due to this, the custom error page is returned by the website and the form is not displayed. Ideally, I want the form to be displayed with the incorrect value retained. How can this be achieved?

Regards,
Kunal Chachad

1 Answer, 1 is accepted

Sort by
0
Kunal
Top achievements
Rank 1
answered on 01 Jun 2011, 09:47 PM
Hi,

Is there any method to handle this error?

Regards,
Kunal Chachad
Tags
Date/Time Pickers
Asked by
Kunal
Top achievements
Rank 1
Answers by
Kunal
Top achievements
Rank 1
Share this question
or