var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_beginRequest(function (sender, e) {
//Event raised when the Async Postback is started.
//Detect whether the request is Async
var isAsync = sender._postBackSettings.async;
//Detect Id of the control that caused the postback.
var controlId = sender._postBackSettings.sourceElement.id;
//Id of the updatepanel that caused the postback
var updatePanelId = sender._postBackSettings.panelID.split('|')[0];
});
}
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
//Event Raised when the Async Postback is completed.
}
});
поставь это и скажи мне результат :) ты знаешь, что в этой ссылке размещена та же статья с тем же кодом:
http://www.aspsnippets.com/
если вы не понимаете, попросите объяснить:)