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

returns '1/1/0001 12:00:00 AM' instead of the clicked date

1 Answer 126 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Regeesh Joseph
Top achievements
Rank 1
Regeesh Joseph asked on 30 Aug 2010, 08:34 AM
Hai,

I have a calendar. I have written some code in in the selectionchanged event. If I click on one date, first time it returns the correct clicked date. But if I click on the same date once more, it returns '1/1/0001 12:00:00 AM' instead of the clicked date. Plz help me. I want to get the clicked date when I click on a date irrespective of the number of times I click on a date.

Thanks & regards,
Regeesh

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Sep 2010, 11:31 AM
Hello Rageesh,


One suggestion is saving the clicked date (unselected date) in a HiddenField from client event 'OnDateSelected', and accessing that in code behind - in 'SelectionChanged'.  


-Shinu.
Tags
Calendar
Asked by
Regeesh Joseph
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or