TextBox::MaxLength Property
.NET Framework (current version)
Gets or sets the maximum number of characters allowed in the text box. The default value is 0, meaning that there is no limit on the length. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
public: [BindableAttribute(true)] property int MaxLength { int get(); void set(int value); }
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is less than zero. |
.NET Framework
Available since 1.1
Available since 1.1
TextBox Class
System.Web.UI.MobileControls Namespace
Introduction to the TextBox Control
Show: