MaskedEdit extender used for entering proper social security numbers
You may have noticed that although the MaskedEdit control offers an excellent mechanism
for restricting user input to the intended values, it lacks a way to further control
the input data as well as a good notification mechanism for informing the user about
missing or invalid data in the TextBox.
This is precisely where the MaskedEditValidator control comes in handy. This
control was specifically designed to work alongside the MaskedEdit extender. The
MaskedEditValidator control can be used to further validate the user input and display a
custom message back to the user. The properties for this control are listed in Table 8-6.
CHAPTER 8 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 2) 176
Table 8-6. Properties of the MaskedEditValidator Control
Property Name Description
AcceptAMPM Boolean value indicating whether or not AM/PM is an acceptable entry
in time fields.
ClientValidationFunction Client-side JavaScript stated for client-side JavaScript validation.
ControlExtender ID of the MaskedEditExtender extender attached to the TextBox.
Pages:
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256