Sys.UI.Control dispose Method
Removes the current control from the application.
Syntax
Remarks
The dispose method releases all resources from the Sys.UI.Control object, unbinds it from its associated HTML Document Object Model (DOM) element, and unregisters it from the application.