Since the beginning of ASP.NET AJAX era I have
seen very few examples on how to manually force update of an ASP.NET AJAX
UpdatePanel using JavaScript and I have decided to post very simple approach
how to do this.
First of all you will need to create your own UpdatePanel which will inherit
from the original ASP.NET AJAX UpdatePanel and will implement
IPostBackEventHandler interface:
Now you can call explicitly Update() method of
the UpdatePanel:
... and that's it! :-) ... however we can extend
this control with an event which will be raised on explicit updates:
Now you can use the new UpdatePanel in your pages like this:
Enjoy!
About the Author
Vladimir Enchev
Vladimir Enchev is Director of Engineering, Native Mobile UI & Frameworks
By submitting this form, you understand and agree that your personal data will be processed by Progress Software or its Partners as described in our Privacy Policy. You may opt out from marketing communication at any time here or through the opt out option placed in the e-mail communication sent by us or our Partners.
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.