[]
The InputMask control provides a way to govern what a user is allowed to input.
public class InputMask : FormInputBase, IHtmlString, ITemplate
| Name | Description |
|---|---|
| InputMask(HtmlHelper, string) | Creates one InputMask instance. |
| Name | Description |
|---|---|
| InputType | Gets or sets the "type" attribute of the HTML input element hosted by the control. |
| IsReadOnly | Gets or sets a value that indicates whether the user can modify the control value using the mouse and keyboard. |
| IsRequired | Gets or sets a value indicating whether the control value must be a non-empty string. |
| Mask | Gets or sets the mask used to validate the input as the user types. |
| OnClientInvalidInput | Occurs when invalid input is detected. |
| OnClientValueChanged | Occurs when the value of the Value property changes. |
| OverwriteMode | Gets or sets a value that determines whether the input element handles input in overwrite mode. In overwrite mode, every character you type is displayed at the cursor position. If a character is already at that position, it is replaced. |
| Placeholder | Gets or sets the string shown as a hint when the control is empty. |
| PromptChar | Gets or sets the symbol used to show input positions in the control. |
| RawValue | Gets or sets the raw value of the control (excluding mask literals). |
| Value | Gets or sets the text currently shown in the control. |