The ASP.NET Web Forms Mask Edit, or input mask control, provides an easy and reliable way to collect user input based on a standard mask. It allows you to capture phone numbers, date values, credit card numbers, and other standard format values.
Other than the standard mask elements, any custom character also can be a mask element by defining rules for it.
The input mask control allows different mask combinations based on the standard and custom masks. So, you can form different mask formats based on your application scenarios.
From the standard mask elements, form a number mask for capturing any finite-length number to get number inputs such as phone numbers and credit card numbers.
In the case of a country code or product key input, where the input string requires uppercase characters, the string mask format will enforce this.
The mask can form any date format to get similarly formatted date values. This is helpful in getting culture-specific date values by defining the corresponding date mask.
As a form component, the captured value of a input mask control proceeds in the raw format when submitting the form.
You can also integrate the form validator plugin to perform any custom validation.
Developers can customize all UI elements and control behaviors of the ASP.NET Web Forms input mask according to the end user’s requirements using its rich set of client-side APIs.