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

Used by the beginRequest event of the Sys.WebForms.PageRequestManager class to pass argument information to event handlers. The beginRequest event is raised just before the postback request is made.

Namespace: Sys.WebForms

Inherits: Sys.EventArgs

Syntax

new Sys.WebForms.BeginRequestEventArgs();

Constructors

Name

Description

BeginRequestEventArgs Constructor

Initializes a new instance of the BeginRequestEventArgs class.

Members

Name

Description

postBackElement Property

Gets the postback element that initiated the asynchronous postback.

request Property

Gets the request object that represents the current 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

Event handlers can use the request property to access the request object and the postBackElement property to determine the element that caused the postback.

Example

The following example shows how to use the BeginRequestEventArgs class. Two buttons perform asynchronous postbacks. In the beginRequest event handler the postBackElement property is used to access the name of the element that caused the postback.

See Also