MaxLength property. The maximum characters allowed to be entered into the TextBox. This property is not applicable when TextMode is Multiline.
[Visual Basic] Overridable Public Property MaxLength As Integer [C#] public int MaxLength {virtual get; virtual set;} [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);
TextBox Class | TextBox Members | System.Web.UI.WebControls Namespace