System.Web.UI.HtmlControls.HtmlInputText.MaxLength Property

Gets or sets the maximum number of characters that can be entered in the text box.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
public int MaxLength { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the HtmlInputText.MaxLength property to specify or determine the maximum number of characters that can be entered in the text box.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0