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 Class

Provides the base class for all Microsoft ASP.NET AJAX client controls.

Namespace: Sys.UI.

Inherits: Sys.Component

Syntax

var a = new MyControl(element);

Constructors

Name

Description

Control Constructor

When called from a derived class, initializes a new instance of that class.

Members

Name

Description

addCssClass Method

Adds a CSS class to the HTML Document Object Model (DOM) element that the current Control object is attached to.

dispose Method

Removes the current Control object from the application by releasing all associated resources and freeing the memory used by the control.

initialize Method

Initializes the current Control object.

onBubbleEvent Method

Called when an event is raised by the raiseBubbleEvent method.

raiseBubbleEvent Method

Calls the onBubbleEvent method of the parent control.

removeCssClass Method

Removes a CSS class from the DOM element that the current Control object is attached to.

toggleCssClass Method

Toggles a CSS class on the DOM element that the current Control object is attached to.

element Property

Gets the DOM element that the current Control object is associated with.

id Property

Gets or sets the identifier for the current Control object.

parent Property

Gets or sets the parent control for the current Control object.

visibilityMode Property

Gets or sets the Sys.UI.VisibilityMode value for the current Control object.

visible Property

Gets or sets the visibility of the current Control object.

Remarks

Sys.UI.Control is a base class and should not be instantiated directly. For information about how to create a control that inherits from Sys.UI.Control, see Creating Custom ASP.NET AJAX Client Controls.