# InputMask

Develop powerful and lightweight web applications using ASP.NET MVC controls. Learn more about the ComponentOne MVC controls in ASP.NET MVC documentation.

## Content

The InputMask control provides a way to govern values entered by a user. The control lets a user edit strings using a mask that prevents invalid input and skips over literals as the user types, such as slashes in date. You can use the [Mask](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.InputMask.Mask.html) property to specify the value of the InputMask control.

![](https://cdn.mescius.io/document-site-files/images/2b3ac322-100e-4637-958d-fb40dcda3f44/images/inputmaskqs.png)

The mask used to validate the input is defined by the mask property, which may contain one or more of the following special characters:

| **0** | Digit. |
| --- | ------ |
| **9** | Digit or space. |
| **#** | Digit, sign, or space. |
| **L** | Letter. |
| **l** | Letter or space. |
| **A** | Alphanumeric. |
| **a** | Alphanumeric or space. |
| **.** | Localized decimal point. |
| **,** | Localized thousand separator. |
| **:** | Localized time separator. |
| **/** | Localized date separator. |
| **$** | Localized currency symbol. |
| **<** | Converts characters that follow to lowercase. |
| **>** | Converts characters that follow to uppercase. |
| **\|** | Disables case conversion. |
| **\\** | Escapes any character, turning it into a literal. |
| **９** | (\\uff19) DBCS Digit. |
| **Ｊ** | (\\uff2a) DBCS Hiragana. |
| **Ｇ** | (\\uff27) DBCS big Hiragana. |
| **Ｋ** | (\\uff2b) DBCS Katakana. |
| **Ｎ** | (\\uff2e) DBCS big Katakana. |
| **K** | SBCS Katakana. |
| **N** | SBCS big Katakana. |
| **Ｚ** | (\\uff3a) Any DBCS character. |
| **H** | Any SBCS character. |
| **All others** | Literals. |
