We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DateTimePickerAdv Validation

I am trying to validate the selected date before the user leaves the control by handling the ValueChanged event. The control is set to accept nulls and starts with no value in the text box portion of the control. When the calendar is popped up, today''s date is automatically selected. As soon as the user selects a different date, the ValueChanged event is fired with the calendar value set to today''s date. The same event is then fired with the value set to the user selected date. After the user has selected a date for the first time, the ValueChanged event only fired once with the value set to the user''s selected date. Is there a setting that will prevent the first ValueChanged event with today''s date? If not, is there a better way to give the user immediate feedback on his/her selection? Thanks, Ken

2 Replies

KJ Kenneth Johnson March 14, 2005 02:33 PM

I forgot to mention that we are using version 2.0.5.0 Ken


KJ Kenneth Johnson March 14, 2005 03:14 PM

Never mind. I found what I was looking for.

Loader.
Live Chat Icon For mobile
Up arrow icon