Refresh ATLAS AJAX UpdatePanel via Javascript
I just saw this excellent little post by
Raj Kaimal on how to refresh an Microsoft AJAX (formerly ATLAS) UpdatePanel by using JavaScript. If you use Microsoft AJAX, this is a great blog to subscribe to.
Raj Kaimal has some really useful advice on implementing Microsoft AJAX features.
At some point if you're working with the UpdatePanel, you're going to want to do this. I once needed to do a bunch of processing on a server and I wanted the page to check the server every couple of seconds to see if the actions had been completed yet but I didn't want to reload the entire page each time so I used something like this.
I have seen this asked a couple of times in the newsgroups hence this post. A simple way of refreshing an UpdatePanel using JavaScript is to add a HiddenField to the page, change its value using JS and then have the HiddenField raise a postback event...
Read the rest from Raj Kaimal's blog