Accessing Input
Generally you can use the Text property
to set the initial value for the MaskedEdit control or to retrieve user
input.
In addition to the MaskedEdit.Text, you can also use
MaskedEditSegment.Text
to access each segment's Text individually. This can be convenient
when you need to derive the final value from each component's value,
for example, deriving a date value from year, month and day of the month values.
Validating Input
One can use a MaskedEditValidator to
validate the input of a MaskedEdit control. When a MaskedEditValidator
is associated with a MaskedEdit control, the validator verifies whether
each segment contains valid input and if any of the segments contains invalid input,
the validation fails.
Alternatively, you can also call isValid on
the client side MaskeEdit object or access
IsValid property on the server side to verify
whether the input is valid.