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.Behavior Class

Provides a base class for all Microsoft ASP.NET AJAX behaviors.

Namespace: Sys.UI

Inherits: Sys.Component


var a = new MyBehavior();




Behavior Constructor

When overridden in a derived class, initializes an instance of that class.




dispose Method

Removes the current Sys.UI.Behavior object from the application.

getBehaviorByName Method

Gets a Behavior instance with the specified name property from the specified HTML Document Object Model (DOM) element.

getBehaviorByType Method

Gets an array of behaviors that are of the specified type from the specified DOM element.

getBehaviors Method

Gets a collection that contains the behaviors associated with the specified DOM element.

initialize Method

Initializes the current Behavior object.

element Property

Gets the DOM element that the current Sys.UI.Behavior object is associated with.

id Property

Gets or sets the ID of the Behavior object.

name Property

Gets or sets the name of the Behavior object.


A behavior is a component that extends the functionality of the DOM element that it is associated with.

The Behavior class should not be instantiated directly; it is a base class for other behaviors to derive from. For information about how to create custom behaviors that derive from this class, see Adding Client Behaviors to Web Server Controls by Using ASP.NET AJAX Extensions.