Using the PageRequestManager in ASP.Net AJAX (ATLAS)

In your java script::

 
var postBackElem;
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(PageLoadedHandler);
function BeginRequestHandler(sender, args)
{
postBackElem = args.get_postBackElement();
}
function PageLoadedHandler(sender, args)
{
var c = 'panels created: ';
var u = 'panels updated: ';
 
for(var i=0;i
c += args.get_panelsCreated()[i].id + ', ';
}
 
for(var i=0;i
u += args.get_panelsUpdated()[i].id + ', ';
}
 
alert(c);
alert(u);
}
This entry was posted in JavaScript, Microsoft AJAX. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *