Label Script Object

See Also      Tasks      Properties      Methods      

Creates a string of text, often referred to as a label that is displayed on a page in the client browser.

Remarks

You can use the Label script object to display regular HTML text on a page that is based on data retrieved from a data source.

At design time, you can use the Label design-time control to create a Label script object. The Label control has custom property pages that make it easier to control the behavior of the Label script object.

The Label script object inserts a <SPAN> tag into the text stream of the document. The Label script object includes text with the <SPAN> tag that is based on the Label design-time control's Caption and formatting properties.

For client-side processing, the DHTML SPAN events apply.

Call the hide, show, and isVisible methods to control how the button is displayed. To manipulate the text of the Label, call the getCaption and setCaption methods.

There are no events associated with the Label script object.

For information on scripting and objects, see Scripting with Design-Time Controls and Script Objects.