Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.UI.Control id Property

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

note

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

Syntax

var i = MyControl.get_id();
MyControl.set_id(value)

Parameter

Description

value

The string to use as 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 allow you to 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.