Robin Pars, Laurence Moroney, and John Grieb
"Foundations of ASP.NET AJAX"
And while the id property
returns the ID field of the current object, isInitialized and isUpdated return boolean
types depending on the self descriptive condition. Just like most properties of the classes
in the ASP.NET AJAX Client Library, the properties of the Sys.Component class as well can
be accessed with built-in get and set accessors as shown in the following script snippet:
if (myComponent.get_isInitialized())
alert ('My component is initialized');
You can just as easily set a value to a property using the set accessor as done in the
following script:
myComponent.set_id('UniqueComponentID');
Lastly, Table 4-13 lists the methods of the Sys.Component class.
Table 4-13.Methods of the Sys.Component Class
Method Name Description
beginUpdate A boolean value called by the create method to indicate that the
process of setting properties of a component instance has begun
create Creates and initializes a component
dispose Removes the component from the application
endUpdate Called by the create method to indicate that the process of setting
properties of a component instance has finished
initialize Initializes the component
raisePropertyChanged Raises the propertyChanged event of the current Component object for
a specified property
updated Called by the endUpdate method of the current Component object
CHAPTER 4 ?– ASP.
returns the ID field of the current object, isInitialized and isUpdated return boolean
types depending on the self descriptive condition. Just like most properties of the classes
in the ASP.NET AJAX Client Library, the properties of the Sys.Component class as well can
be accessed with built-in get and set accessors as shown in the following script snippet:
if (myComponent.get_isInitialized())
alert ('My component is initialized');
You can just as easily set a value to a property using the set accessor as done in the
following script:
myComponent.set_id('UniqueComponentID');
Lastly, Table 4-13 lists the methods of the Sys.Component class.
Table 4-13.Methods of the Sys.Component Class
Method Name Description
beginUpdate A boolean value called by the create method to indicate that the
process of setting properties of a component instance has begun
create Creates and initializes a component
dispose Removes the component from the application
endUpdate Called by the create method to indicate that the process of setting
properties of a component instance has finished
initialize Initializes the component
raisePropertyChanged Raises the propertyChanged event of the current Component object for
a specified property
updated Called by the endUpdate method of the current Component object
CHAPTER 4 ?– ASP.