Easy Tutorial
❮ Control Htmlinputhidden Aspnet Dbconnection ❯

ASP.NET TextBox MaxLength Property



Definition and Usage

The MaxLength property is used to set or return the maximum number of characters allowed in the TextBox control.

Syntax

Property Description
num A numeric value that specifies the maximum number of characters allowed in the text box.

Example

The following example sets the maximum number of characters allowed in the TextBox control:


❮ Control Htmlinputhidden Aspnet Dbconnection ❯