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.WebForms.PageLoadedEventArgs Class

Used by the pageLoaded event of the Sys.WebForms.PageRequestManager class to send event data that represents the UpdatePanel controls that were updated and created in the most recent postback.

Namespace: Sys.WebForms

Inherits: Sys.EventArgs

Syntax

var args = new Sys.WebForms.PageLoadedEventArgs();

Constructors

Name

Description

PageLoadedEventArgs Constructor

Initializes a new instance of the PageLoadedEventArgs class.

Members

Name

Description

dataItems Property

Gets a JSON data structure that contains data items that were registered by using the RegisterDataItem method of the ScriptManager class.

panelsCreated Property

Gets an array of HTML <div> elements that represent UpdatePanel controls that were created when the DOM was updated during the last asynchronous postback.

panelsUpdated Property

Gets an array of HTML <div> elements that represent UpdatePanel controls that were updated when the DOM was updated during the last postback.

note

This class contains private members that support the client-script infrastructure and are not intended to be used directly from your code. Names of private members begin with an underscore ( _ ).

Remarks

The UpdatePanel control renders HTML <div> elements. The pageLoaded event contains information about which <div> elements on the page were updated and created. The panelsCreated property is an array of panel elements that were created as a result of the current asynchronous postback. The panelsUpdated property is an array of panels that were updated as a result of the current asynchronous postback.

Example

The following example shows how to use the pageLoaded event to provide script that animates a region of the page during a partial-page update. The event data (args) is a PageLoadedEventArgs object.