Given an Asp.Net page that contains UpdatePanels. How to update a specific UpdatePanel from the client-side.
And is it possible to update it from a dialog opened from this page? (via window.open)
Thanks in advance.
UpdatePanel controls are a central part of AJAX functionality in ASP.NET. They are used with the ScriptManager control to enable partial-page rendering. Partial-page rendering reduces the need for synchronous postbacks and complete page updates when only part of the page has to be updated.
By using multiple UpdatePanel controls on a page, you can incrementally update regions of the page separately or together. For more information about partial-page updates, see Partial-Page Rendering Overview and Introduction to the UpdatePanel Control.
Here are some links to take a look at...
Easily refresh an UpdatePanel, using JavaScript
How to refresh an UpdatePanel from javascript
Refresh the UpdatePanel using JavaScript Code
Update Updatepanel with JS
<script type="text/javascript">
function UpdPanelUpdate(value)
{
var obj = document.getElementById("<%= txt.ClientID %>");
obj.value=value;
__doPostBack("<%= btn.ClientID %>","");
}
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With