SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 119 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

This method takes in two
parameters, the name of the component and the ID of the parent component (if any).
In the following script, we check for the existence of a control called CustomComponent in a
parent control with the ID of Panel1.

?– Note You can use $find as a shortcut to Sys.Application.findComponent. This is one of many
global shortcuts in the ASP.NET AJAX Client Library.
Table 4-12 contains a list of methods in the Application.Sys class.
Table 4-12.Methods of the Sys.Application Class
Method Name Description
addComponent Creates and initializes a component with the Application object
dispose Releases all dependencies held by the objects in the page
findComponent Finds and returns the specified component object
getComponents Returns an array of all components that have been registered in the
page using the addComponent method
initialize Initializes the Application object
notifyScriptLoaded Boolean value indicating whether all the scripts have been loaded
queueScriptReference Used to queue script files that will be loaded in a sequential order
raiseLoad Raises the load event
registerDisposableObject Registers an object/component with the application and manages
the object requiring disposal
removeComponent Removes an object from the application or disposes the object if it
is disposable
unregisterDisposableObject Removes/unregisters a disposable object from the application
CHAPTER 4 ?–  ASP.


Pages:
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131