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

2 posts, 0 answers
  1. Regeesh Joseph
    Regeesh Joseph avatar
    55 posts
    Member since:
    May 2010

    Posted 30 Aug 2010 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Sep 2010 Link to this post

    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.
Back to Top