Visual InterDev

             

Creates a Textbox script object, which creates an intrinsic HTML <INPUT> tag or <TEXTAREA> tag.

Remarks

You can set the properties of the Textbox control at design time using the Properties window and the Textbox Properties dialog box.

The Textbox control creates tags and editable text for reading from and writing to a database. To create non-editable text, see the Label control.

To bind the Textbox control to a Recordset control, set the Textbox control's Recordset property to the name of a Recordset control on the page and set the DataField property to a field from the recordset.

The ControlStyle property determines which tag is created, <INPUT TYPE=TEXT>, <INPUT TYPE=PASSWORD>, or <TEXTAREA></TEXTAREA>.

Set the MaxChars property to limit the number of characters that the user can type into the text box.

Tip   Drag a field from the Data Environment onto a page. Microsoft® Visual InterDev™ automatically creates a Textbox control. Bit fields are an exception - they create Checkbox controls.

Note   The scripting platform specifies where an object's script is run - either on the client (Microsoft® Internet Explorer 4.0 DHTML) or on the server (ASP). Thus, the scripting platform determines whether the object is available under Client Objects & Events or Server Objects & Events in the Script Outline window.

For the Textbox control, the Scripting Platform property is specified on the General tab of the Textbox Properties dialog box. For more information, see the property. For detailed information about choosing a scripting platform, see Writing Script for Script Objects.

Scripting Notes

To control how the Textbox is displayed, call the show, hide, and isVisible methods.

To control the width, call the getColumnCount and setColumnCount methods.

To control the height of a text area, call the getRowCount and setRowCount methods.

For more information about the run-time object, see Textbox Script Object. For information on scripting and objects, see Scripting with Design-Time Controls and Script Objects.