2

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
  • 1
    From a quick Google, I'm guessing UpdatePanel has to do with ASP.NET. Added the appropriate tag. Commented Jul 10, 2010 at 13:52

1 Answer 1

1

You could register the endRequest event:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
    alert('async request finished');
});
Sign up to request clarification or add additional context in comments.

1 Comment

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. Thnx Akif

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.