Akif Patel
Akif Patel

Reputation: 31

Assign javascript CallBack function to a UpdatePanel

I wanna assign a JavaScript CallBack function to an UpdatePanel which will be gets called when the UpdatePanel finishes its tasks. After, the UpdatePanel will be sending a string as a result. This JavaScript CallBack function will have to process this resulting string.

Please help me out to achieve this.

Regards, Akif

Upvotes: 2

Views: 857

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038830

You could register the endRequest event:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
    alert('async request finished');
});

Upvotes: 1

Related Questions