Sys.UI.Control id Property

Gets the identifier for the current Sys.UI.Control object.

Note

To get property values for client API properties, you must call the property accessor method that is named with the get_ prefix. For example, to get a value for a property such as cancel, you call the get_cancel method.

var i = MyControl.get_id();

Parameters

Parameter

Description

value

The identifier.

Return Value

The identifier for the current Control object. The default is the id value of the associated Sys.UI.DomElement object.

Exceptions

Exception type

Condition

Error.invalidOperation

An attempt was made to set the value of Control.id.

Remarks

The base implementation of this property does not let you set the value of the id property after the control has been initialized. Instead, set this property in the $create statement that adds the control to the application, or use the default value.

See Also

Tasks

Creating Custom AJAX Client Controls

Reference

Sys.UI.Control Class

Other Resources

Language Reference