Saturday, May 28, 2011

Confirmation before ASP.NET Asynchronous call

Scenario - Ask for user confirmation before ASP.NET Ajax asynchronous call.

Fix- The ASP.NET Ajax PageRequestManager class fires the initilaizeRequest event before trigger the asynchronous call. The second event of this event is the initializeRequestEventArgs. It has a method called get_postBackElement() that identifies the element that triggered the call.



No comments:

Post a Comment