MAXLENGTH Attribute | MaxLength Property

Sets or retrieves a value that indicates the maximum number of characters that the user can enter.

Syntax

Visual Basic Overridable  Public  Property MaxLength As int
C# public   virtual  int MaxLength { get; set; }
Managed C++ public:  __property virtual int get_MaxLength();
public:  __property virtual  void set_MaxLength(int);
JScript public   function get MaxLength() : int;
public   function set MaxLength(int);

Possible Values

iMaxLength int that specifies or receives the maximum length of the input.

The property is read/write. The property has no default value.

Remarks

The MAXLENGTH property limits the number of characters the user can enter.

Applies To

TOOLBARTEXTBOX

See Also

Internet Explorer WebControls, About the Toolbar WebControl