# ASP.NET MVC MaskedTextBox Overview

The Telerik UI MaskedTextBox HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI MaskedTextBox widget.

The MaskedTextBox enables a controlled text input that is based on a specific format. The helper enables you to define its value and mask value, and set custom mask rules, prompt characters, and culture names. Each mask can contain mask rules and mask literals. The mask literals are automatically entered for the user and cannot be removed. You can also use the MaskedTextBox predefined rules which specify the required or optional digit, letter, or character input.

* [Demo page for the MaskedTextBox HtmlHelper](https://demos.telerik.com/aspnet-mvc/maskedtextbox/index)

## Basic Configuration

The following example demonstrates the basic configuration for the MaskedTextBox.

```Razor HtmlHelper
	@(Html.Kendo().MaskedTextBox()
		.Name("maskedtextbox") // The name of the MaskedTextBox is mandatory. It specifies the "id" attribute of the MaskedTextBox.
		.Mask("(000) 000-0000") // Set the mask value of the MaskedTextBox.
		.Value("(123) 345-6789") // Set the value of the MaskedTextBox.
	)
```

## Functionality and Features

* [Mask rules](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/maskedtextbox/mask-rules)—You can configure a variety of predefined masks as well as custom masks in the MaskedTextBox.
* [Globalization](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/maskedtextbox/globalization/overview)—The globalization process combines the translation of component messages (localization) with adapting them to specific cultures (internationalization and right-to-left support).
* [Accessibility](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/maskedtextbox/accessibility/overview)—The MaskedTextBox is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support.

> tip To learn more about the appearance, anatomy, and accessibility of the MaskedTextBox, visit the [Progress Design System documentation](https://www.telerik.com/design-system/docs/components/maskedtextbox/)—an information portal offering rich component usage guidelines, descriptions of the available style variables, and globalization support details.

## Next Steps

* [Basic Usage of the MaskedTextBox HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/maskedtextbox/index)

## See Also

* [Using the API of the MaskedTextBox for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/maskedtextbox/api)
* [Knowledge Base Section](https://www.telerik.com/aspnet-mvc/documentation/knowledge-base)
