TextBox::MaxLength Property

 

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.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
[BindableAttribute(true)]
property int MaxLength {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The maximum number of characters allowed in the text box.

Exception Condition
ArgumentOutOfRangeException

The value is less than zero.

.NET Framework
Available since 1.1
Return to top
Show: