There is a bug in OnPreRender function (MaskedEditValidator)
MaskExt.UserDateFormat is converted to its string representation (e.g. "DateMonthYear") rather than to short format (like "DMY")
So if UserDateFormat of MaskedEdit extender is specified,, dates are not validated.
Comments: The UserDateFormat confusion between string and short formats actually prevents the MaskedEditValidator from working with a MaskedEditControl when UserDateFormat is specified. Okay, technically is doesn't prevent it, but it does mean the MaskedEditValidator will always indicate the value is not a valid date. In other words, if you need to specify a UserDateFormat for the MaskedEditControl, you will be unable to use the MaskedEditValidator. The reason for the failure is the MaskedEditValidatorPartDate function uses the position of M, D, and Y in the UserDateFormat string as indices into m_arrDate. When the format is DayMonthYear, the positions of M and Y are not valid indices in m_arrDate. Thus it cannot validate the date because it only has one part of the date.
MaskExt.UserDateFormat is converted to its string representation (e.g. "DateMonthYear") rather than to short format (like "DMY")
So if UserDateFormat of MaskedEdit extender is specified,, dates are not validated.
Comments: The UserDateFormat confusion between string and short formats actually prevents the MaskedEditValidator from working with a MaskedEditControl when UserDateFormat is specified. Okay, technically is doesn't prevent it, but it does mean the MaskedEditValidator will always indicate the value is not a valid date. In other words, if you need to specify a UserDateFormat for the MaskedEditControl, you will be unable to use the MaskedEditValidator. The reason for the failure is the MaskedEditValidatorPartDate function uses the position of M, D, and Y in the UserDateFormat string as indices into m_arrDate. When the format is DayMonthYear, the positions of M and Y are not valid indices in m_arrDate. Thus it cannot validate the date because it only has one part of the date.