Size Property (TextBox)

Sets or returns 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.

public int Size {


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.

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.

See Also

ValidationSummary Control

Applies to: TextBox Class