JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the HtmlInputText Class

This class creates an HTML text field, and you also can use this control to create password fields, using the <input type= "text"> and <input type= "password"> HTML elements. Here is the inheritance hierarchy of this class:

Object
   Control
      HtmlControl
         HtmlInputControl
            HtmlInputText

You can find the notable public properties of HtmlInputText objects in Table 19.6 and their notable events in Table 19.7. (This class has no non-inherited methods.) Note that as with other HTML server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class; you can find them in Chapter 15, Tables 15.1 to 15.3. This class also inherits the HtmlControl class—you can find that class in Table 19.2—and the HtmlInputControl class, which you can find in Table 19.4.

Table 19.6: Noteworthy public properties of HtmlInputText objects.

Property

Means

MaxLength

Gets/sets the maximum number of characters the user can enter into the text field.

Size

Gets/sets the size (that is, the width) of the text field.

Value

Overridden. Gets/sets the contents of the text field.

Table 19.7: Noteworthy public events of HtmlInputText objects.

Event

Means

ServerChange

Occurs when the Value property changes on the server.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor