- Online Barcode Generator
- How To
- Buy Now
With KT.UI PerMaskedTextBox Input control support, users can get the easy to use control to indentify and distinguish proper and improper input by setting the Mask property. Users can use the Mask property within ASP.NET application to specify the supportable format of user input, for instance, telephone number format, currency font and many more.
In this tutorial article, users can get the complete introduction of what the Mask property is and how to set its attributes according to actual requirements.
Mask and DisplayMask for ASP.NET AJAX
In this section, we focus on what the Mask and DisplayMask property are of KT.UI SDK for ASP.NET AJAX as well as the sample ASP.NET codes for setting these two properties.
Please see following ASPX codes and sample screenshot.
ASP.NET Codes for Setting other Property
As a matter of fact, users can set and define the Mask at run time in various ways, which can control the way that the Mask can be used. And generally speaking, there are three properties that can affect the way the Mask works.
Please check out following ASP.NET codes for these properties within web PerInput MaskedNumericTextBox page.
ASP.NET Codes to Set Focus of MaskedTextBox Input
When users are not editing the value in the MaskedTextBox or the text box does not have focus, you can build and set different appearance for the Mask text box. Please do as the sample ASP.NET codes show.
ASP.NET Codes to Set MultiLine Mode
Opposite to single-line mode, users are enabled to use PerMaskedTextBox component to display the texts in text box in multiple lines like the sample image below.
Please read following sample ASP.NTE codes, for more C# codes on setting multi-line mode of MaskedTextBox Input control, please have a simple click.
Example image for MultiLine mode of MaskedTextBox:
ASP.NET AJAX UI Controls