The TextBox control allows the user to input a single line of text. You can retrieve the text through the Text property. In addition, you can set the Boolean Password field so that all input characters are masked (typically using an asterisk) or the Boolean Numeric field so that only number characters will are allowed. Not all devices support the Numeric property (for example, it will have no effect in an HTML page), so it is recommended that you use some type of validation or validation controls if you need to ensure that input is numeric.
public class TextBox : TextControl, System.Web.UI.IPostBackDataHandler { // Public Constructors public TextBox( ); // Public Instance Properties public int MaxLength{set; get; } public bool Numeric{set; get; } public bool Password{set; get; } public int Size{set; get; } public string Title{set; get; } // Protected Instance Methods protected virtual void OnTextChanged(EventArgs e); // Events public event EventHandler TextChanged; }