views:

49

answers:

1

Hi All, 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

+1  A: 

You could register the endRequest event:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
    alert('async request finished');
});
Darin Dimitrov
Thanks, but i knew it. My requirement is little bit different. I need to pass a string generated during partial postback of an updatepanel back to the browser. Then I will be processing this string in callback function.ThnxAkif
Akif Patel