Example of Formats in ASP.NET Core Input Mask Control

Input Mask
Formats

This sample demonstrates that the different formats can be applied to MaskedTextBox component. You can customize the mask and prompt character values in the property panel.

Formats
Properties
Mask
Prompt Character
Value
Masked Value
(___)-___-____

Here, the "Value" and "Masked Value" labels from the properties panel returns the raw value (unmasked value) and masked value of the MaskedTextBox component. You can also get these raw value and masked value anytime through the value property and getMaskedValue method.

More information about MaskedTextBox can be found in this documentation section.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab