Skip to content

Example of Formats in ASP.NET MVC MaskedTextBox Control

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

Formats
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.