$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
How to Build TextBox Input Using C#
Home > How to > Input TextBox

Users are able to use KT.UI SDK Input Control for ASP.NET to input and customize text values to TextBox. With the rich and stable options for specifying TextBox control within C#.NET project, users are allowed to finish common textbox properties customizations, for example, users are free to set empty message by using AutoPostBack attribute, adjust TextBox max length with the assistance of texts length property, add label to textbox with the label choice and use multi-line text mode as well as password mode by calling and using the corresponding methods and demo C#.NET codes.
In following texts, users can get complete information on how to set and specify TextBox of PerInput control for C# ASP.NET AJAX:
  • C# sample codes to set empty message for TextBox
  • C# sample codes to adjust TextBox' max length
  • C# sample codes to add and customize label to TextBox
  • C# sample codes to switch TextBox into multi-line inputting mode
  • C# sample codes set TextBox property as password mode that can behave in single mode

Use C# Codes to Set Empty Message

If you set the AutoPostBack attribute as True, you can apply PerInput TextBox control to input empty message. Specific demo C# ASP.NET codes are displayed below.
PerTextBox1.EmptyMessage = "please enter";

Use C# Codes to Set Max Length

With the rich support of KT.UI PerInput TextBox specifying control, users are allowed to set and adjust the allowable inputting max length both in single-line mode and multi-line mode based on your own needs.
PerTextBox1.MaxLength = 100;

Use C# Codes to Set Label

Use PerInput TextBox label adding tool, users are able to add and customize label before TextBox within C# ASP.NET programming application. Please check out the entire sample codes for this property setting.
PerTextBox1.Label = "text box";

Use C# Codes to Set Multi-Line

Users just need to set the TextBox property to Multi-Line to use PerInput TextBox component in multi-line mode. When in this mode, the rows and columns of input texts can be automatically defined and displayed precisely. In addition, the Resize attribute of TextBox supports the resize modes, such as "None", "Both", "Vertical", "Horizontal". Besides, single-line TextBox mode is certainly compatible.
PerTextBox1.TextMode = InputMode.MultiLine;
PerTextBox1.Resize = ResizeMode.Both;

Use C# Codes to Set Password Mode

Besides, users still can choose to input TextBox in Password mode, and the texts input in password mode are in single-line mode.
PerTextBox1.TextMode = InputMode.Password;
ASP.NET AJAX UI Controls