Version

InvalidDateEntered Event

This event is fired when the DateChooser encounters an invalid date. This event can be fired after a postback, or during the Page_Load.
Syntax
'Declaration
 
Public Event InvalidDateEntered As WebDateChooser.InvalidDateEnteredEventHandler
public event WebDateChooser.InvalidDateEnteredEventHandler InvalidDateEntered
Event Data

The event handler receives an argument of type WebDateChooser.InvalidDateEventArgs containing data related to this event. The following WebDateChooser.InvalidDateEventArgs properties provide information specific to this event.

PropertyDescription
Reason

The code specifying why the date was invalid.

Text

If the Reason was ImproperDateFormat, this will be the original date string, otherwise it will be null.

Value

If the Reason was DateOutOfRange or NullValue, this will be the original DateTime, otherwise it will be null.

Remarks
You can use this event to handle invalid date entries made.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also