TextBox::Size Property
Gets or sets the expected length of the specified text box, in characters. The default value for the size of a text box is 0, which means that the browser will use its default text box 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)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is less than zero. |
This information is not used to perform validation checks against the actual input value. To perform a validation check against an input value, use the validator controls or the MaxLength property.
This information does determine the rendering behavior. For example, the value of this property helps determine how large to make an input text box in HTML.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.